[NimQml] Fixed compilation error on 0.11.0

This commit is contained in:
Filippo Cucchetto 2015-05-02 19:05:35 +02:00
parent 17d608579f
commit 2f2d8d1b59
1 changed files with 2 additions and 2 deletions

View File

@ -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