summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdirmodel
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-09-18 12:54:44 (GMT)
committerLars Knoll <lars.knoll@nokia.com>2009-09-18 12:54:44 (GMT)
commit0e7e62eb6afbc1f20d08b837643009cec8eaacb9 (patch)
tree1eb5f9fb0194b8a9ffa1d9ab961a0ac68db7508a /tests/auto/qdirmodel
parentb88bcd68a62ab8ed348bc698f7342346963bb7c0 (diff)
parent421e02d7b48b4a852a4aa1e6feb781a64f0981b4 (diff)
downloadQt-0e7e62eb6afbc1f20d08b837643009cec8eaacb9.zip
Qt-0e7e62eb6afbc1f20d08b837643009cec8eaacb9.tar.gz
Qt-0e7e62eb6afbc1f20d08b837643009cec8eaacb9.tar.bz2
Merge commit 'origin/4.6' into kinetic-declarativeui
Conflicts: configure.exe
Diffstat (limited to 'tests/auto/qdirmodel')
-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());
}