Fixed metaObject method call

This commit is contained in:
Filippo Cucchetto 2016-02-09 00:11:40 +01:00
parent 6d33feece6
commit 97437040c6
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ proc qobjectCallback(qobjectPtr: pointer, slotNamePtr: DosQVariant, numArguments
proc setup*(self: QObject) =
## Initialize a new QObject
dos_qobject_create(self.vptr, addr(self[]), QObject.staticMetaObject.vptr, qobjectCallback)
dos_qobject_create(self.vptr, addr(self[]), self.metaObject.vptr, qobjectCallback)
proc delete*(self: QObject) =
## Delete a QObject