summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qdirmodel/tst_qdirmodel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qdirmodel/tst_qdirmodel.cpp b/tests/auto/qdirmodel/tst_qdirmodel.cpp
index ec05a08..be46527 100644
--- a/tests/auto/qdirmodel/tst_qdirmodel.cpp
+++ b/tests/auto/qdirmodel/tst_qdirmodel.cpp
@@ -614,17 +614,24 @@ void tst_QDirModel::task196768_sorting()
QTreeView view;
QPersistentModelIndex index = model.index(path);
+ qDebug() << "Path" << path << "count" << model.rowCount(index) << "index" << index;
+
view.setModel(&model);
+ qDebug() << "After setModel" << index;
QModelIndex index2 = model.index(path);
+ qDebug() << "A" << index << index2;
QCOMPARE(index.data(), index2.data());
view.setRootIndex(index);
index2 = model.index(path);
+ qDebug() << "B" << index << index2;
QCOMPARE(index.data(), index2.data());
view.setCurrentIndex(index);
index2 = model.index(path);
+ qDebug() << "C" << index << index2;
QCOMPARE(index.data(), index2.data());
view.setSortingEnabled(true);
index2 = model.index(path);
+ qDebug() << "After sorting" << index << index2;
QCOMPARE(index.data(), index2.data());
}