mirror of https://github.com/status-im/nimqml.git
Fixed with the changes in the DOtherSide library
This commit is contained in:
parent
cee83ba832
commit
a3dabe05c3
|
@ -134,9 +134,9 @@ proc dos_qabstractlistmodel_qmetaobject(vptr: var DosQmetaObject) {.cdecl import
|
||||||
proc dos_qmetaobject_create(vptr: var DosQmetaObject,
|
proc dos_qmetaobject_create(vptr: var DosQmetaObject,
|
||||||
superclassMetaObject: DosQMetaObject,
|
superclassMetaObject: DosQMetaObject,
|
||||||
className: cstring,
|
className: cstring,
|
||||||
signalDefinitions: DosSignalDefinitions,
|
signalDefinitions: ptr DosSignalDefinitions,
|
||||||
slotDefinitions: DosSlotDefinitions,
|
slotDefinitions: ptr DosSlotDefinitions,
|
||||||
propertyDefinitions: DosPropertyDefinitions) {.cdecl, importc.}
|
propertyDefinitions: ptr DosPropertyDefinitions) {.cdecl, importc.}
|
||||||
proc dos_qmetaobject_delete(vptr: DosQmetaObject) {.cdecl, importc.}
|
proc dos_qmetaobject_delete(vptr: DosQmetaObject) {.cdecl, importc.}
|
||||||
|
|
||||||
# QUrl
|
# QUrl
|
||||||
|
|
|
@ -59,7 +59,9 @@ proc newQMetaObject*(superClass: QMetaObject, className: string,
|
||||||
notifySignal: notifySignal)
|
notifySignal: notifySignal)
|
||||||
dosProperties.add(dosProperty)
|
dosProperties.add(dosProperty)
|
||||||
|
|
||||||
|
let signals = DosSignalDefinitions(count: dosSignals.len.cint, definitions: if dosSignals.len > 0: dosSignals[0].unsafeAddr else: nil)
|
||||||
|
let slots = DosSlotDefinitions(count: dosSlots.len.cint, definitions: if dosSlots.len > 0: dosSlots[0].unsafeAddr else: nil)
|
||||||
|
let properties = DosPropertyDefinitions(count: dosProperties.len.cint, definitions: if dosProperties.len > 0: dosProperties[0].unsafeAddr else: nil)
|
||||||
|
|
||||||
dos_qmetaobject_create(result.vptr, superClass.vptr, className.cstring,
|
dos_qmetaobject_create(result.vptr, superClass.vptr, className.cstring,
|
||||||
DosSignalDefinitions(count: dosSignals.len.cint, definitions: if dosSignals.len > 0: dosSignals[0].unsafeAddr else: nil),
|
signals.unsafeAddr, slots.unsafeAddr, properties.unsafeAddr)
|
||||||
DosSlotDefinitions(count: dosSlots.len.cint, definitions: if dosSlots.len > 0: dosSlots[0].unsafeAddr else: nil),
|
|
||||||
DosPropertyDefinitions(count: dosProperties.len.cint, definitions: if dosProperties.len > 0: dosProperties[0].unsafeAddr else: nil))
|
|
||||||
|
|
Loading…
Reference in New Issue