mirror of https://github.com/status-im/nimqml.git
Fixed with changes in DotherSid that removed the QAIM delete
This commit is contained in:
parent
ba9d537b9b
commit
eac1a3f920
|
@ -96,7 +96,6 @@ method onSlotCalled*(self: QAbstractListModel, slotName: string, arguments: open
|
||||||
## Called from the dotherside library when a slot is called from Qml.
|
## Called from the dotherside library when a slot is called from Qml.
|
||||||
|
|
||||||
proc setup*(self: QAbstractListModel) =
|
proc setup*(self: QAbstractListModel) =
|
||||||
echo "NimQml: QAbstractListModel.setup"
|
|
||||||
## Setup a new QAbstractListModel
|
## Setup a new QAbstractListModel
|
||||||
dos_qabstractlistmodel_create(self.vptr.DosQAbstractListModel, addr(self[]), self.metaObject.vptr,
|
dos_qabstractlistmodel_create(self.vptr.DosQAbstractListModel, addr(self[]), self.metaObject.vptr,
|
||||||
qobjectCallback, rowCountCallback, columnCountCallback,
|
qobjectCallback, rowCountCallback, columnCountCallback,
|
||||||
|
@ -105,11 +104,7 @@ proc setup*(self: QAbstractListModel) =
|
||||||
|
|
||||||
proc delete*(self: QAbstractListModel) =
|
proc delete*(self: QAbstractListModel) =
|
||||||
## Delete the given QAbstractListModel
|
## Delete the given QAbstractListModel
|
||||||
if self.vptr.isNil:
|
self.QObject.delete()
|
||||||
return
|
|
||||||
debugMsg("QAbstractListModel", "delete")
|
|
||||||
dos_qabstractlistmodel_delete(self.vptr.DosQAbstractListModel)
|
|
||||||
self.vptr.resetToNil
|
|
||||||
|
|
||||||
proc newQAbstractListModel*(): QAbstractListModel =
|
proc newQAbstractListModel*(): QAbstractListModel =
|
||||||
## Return a new QAbstractListModel
|
## Return a new QAbstractListModel
|
||||||
|
|
Loading…
Reference in New Issue