aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Petersson <Martin.Petersson@nokia.com>2012-02-20 14:56:12 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-29 09:20:00 +0100
commit9593df26c4a87130947dbdacf5ddb2f7a3412cbc (patch)
treeaa1596bfc882c328a842f1d116251181e8f8f074 /tests
parent82a2faadb83d74fec82c7ade443e64558670f3a7 (diff)
FolderListModel: remove widget and QDirModel use
FolderListModel used the obsolete QDirModel internally. Because of this it needed widgets to work. I have made a threaded model instead that use QDir internally. Change-Id: Ibd1267a135ee3c6df7bcde420073866b7a76d0d1 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp b/tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp
index 07eb6e87e1..708f3c90bb 100644
--- a/tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp
+++ b/tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp
@@ -170,8 +170,8 @@ void tst_qdeclarativefolderlistmodel::refresh()
flm->setProperty("sortReversed", true);
- QCOMPARE(removeStart, 0);
- QCOMPARE(removeEnd, count-1);
+ QTRY_COMPARE(removeStart, 0);
+ QTRY_COMPARE(removeEnd, count-1); // wait for refresh
}
QTEST_MAIN(tst_qdeclarativefolderlistmodel)