forked from qt-creator/qt-creator
Debugger: Added auto test for QModelIndex dumper.
Also fixed a bug uncovered by the auto test.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user