Debugger: Added auto test for QModelIndex dumper.

Also fixed a bug uncovered by the auto test.
This commit is contained in:
ck
2009-08-11 11:44:23 +02:00
parent e89a3b00d4
commit 49066c709a
2 changed files with 47 additions and 3 deletions
+1 -1
View File
@@ -1818,7 +1818,7 @@ static void qDumpQModelIndex(QDumper &d)
const QModelIndex parent = mi->parent();
d.beginItem("value");
if (parent.isValid())
d.put("(").put(mi->row()).put(", ").put(mi->column()).put(")");
d.put("(").put(parent.row()).put(", ").put(parent.column()).put(")");
else
d.put("<invalid>");
d.endItem();