mirror of https://github.com/status-im/nimqml.git
Fixed exportion of QModelIndex
This commit is contained in:
parent
d1b511ec2b
commit
2126599d21
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue