Fixed exportion of QModelIndex

This commit is contained in:
Filippo Cucchetto 2016-02-20 11:22:02 +01:00
parent d1b511ec2b
commit 2126599d21
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ proc setup*(self: var QModelIndex) =
## Setup a new QModelIndex ## Setup a new QModelIndex
dos_qmodelindex_create(self.vptr) dos_qmodelindex_create(self.vptr)
proc setup*(self: var QModelIndex, vptr: DosQModelIndex) = proc setup(self: var QModelIndex, vptr: DosQModelIndex) =
## Setup a new QModelIndex ## Setup a new QModelIndex
self.vptr = vptr self.vptr = vptr
@ -19,7 +19,7 @@ proc newQModelIndex*(): QModelIndex =
new(result, delete) new(result, delete)
result.setup() result.setup()
proc newQModelIndex*(vptr: DosQModelIndex): QModelIndex = proc newQModelIndex(vptr: DosQModelIndex): QModelIndex =
## Return a new QModelIndex given a raw index ## Return a new QModelIndex given a raw index
new(result, delete) new(result, delete)
result.setup(vptr) result.setup(vptr)