Squish: Fix tst_qml_locals

The locals and expressions display nowadays an additional
column which might be hidden.
Use the right 'Value' column to fetch the values.

Fixes: QTCREATORBUG-22617
Change-Id: I646b05eed607c5941f2713013221eb4c511d901b
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2019-06-25 13:27:06 +02:00
committed by Robert Loehning
parent 29e92e4dda
commit 8d0e57e7db

View File

@@ -122,7 +122,8 @@ def fetchItems(index, valIndex, treeView):
tree.setName(name)
tree.setValue(value)
for row in range(model.rowCount(index)):
tree.addChild(fetchItems(model.index(row, 0, index), model.index(row, 1, index), treeView))
tree.addChild(fetchItems(model.index(row, 0, index),
model.index(row, 2, index), treeView))
return tree
def checkForEmptyRows(items, isRootCheck=True):