[NimQml] Fixed compilation error on 0.11.0
This commit is contained in:
parent
17d608579f
commit
2f2d8d1b59
|
@ -710,8 +710,8 @@ proc roleNamesCallback(modelObject: ptr QAbstractListModelObj, hash: RawQHashInt
|
||||||
debugMsg("QAbstractListModel", "roleNamesCallback")
|
debugMsg("QAbstractListModel", "roleNamesCallback")
|
||||||
let model = cast[QAbstractListModel](modelObject)
|
let model = cast[QAbstractListModel](modelObject)
|
||||||
let table = model.roleNames()
|
let table = model.roleNames()
|
||||||
for pair in table.pairs:
|
for key, val in table.pairs:
|
||||||
dos_qhash_int_qbytearray_insert(hash, pair.key, pair.val)
|
dos_qhash_int_qbytearray_insert(hash, key, val)
|
||||||
|
|
||||||
method flags*(model: QAbstractListModel, index: QModelIndex): QtItemFlag =
|
method flags*(model: QAbstractListModel, index: QModelIndex): QtItemFlag =
|
||||||
## Return the item flags and the given index
|
## Return the item flags and the given index
|
||||||
|
|
Loading…
Reference in New Issue