From 2f2d8d1b59b8cf6fa50ccca1f70706616228693f Mon Sep 17 00:00:00 2001 From: Filippo Cucchetto Date: Sat, 2 May 2015 19:05:35 +0200 Subject: [PATCH] [NimQml] Fixed compilation error on 0.11.0 --- Nim/NimQml/NimQml.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nim/NimQml/NimQml.nim b/Nim/NimQml/NimQml.nim index 2b369af..9a07c6d 100644 --- a/Nim/NimQml/NimQml.nim +++ b/Nim/NimQml/NimQml.nim @@ -710,8 +710,8 @@ proc roleNamesCallback(modelObject: ptr QAbstractListModelObj, hash: RawQHashInt debugMsg("QAbstractListModel", "roleNamesCallback") let model = cast[QAbstractListModel](modelObject) let table = model.roleNames() - for pair in table.pairs: - dos_qhash_int_qbytearray_insert(hash, pair.key, pair.val) + for key, val in table.pairs: + dos_qhash_int_qbytearray_insert(hash, key, val) method flags*(model: QAbstractListModel, index: QModelIndex): QtItemFlag = ## Return the item flags and the given index