summaryrefslogtreecommitdiff
path: root/tests/auto/qlistview/tst_qlistview.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-29 17:15:49 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-30 11:21:48 +0200
commitc33c3eab6fc510634f00eb001ce5c5860083ba82 (patch)
tree731debe85eef2620eccd21f119a4d598aadafcac /tests/auto/qlistview/tst_qlistview.cpp
parentf4c2e64e4700c54750a82bf5a2d6c575afb1cde6 (diff)
downloadqt4-tools-c33c3eab6fc510634f00eb001ce5c5860083ba82.tar.gz
Stabilize listview test
Diffstat (limited to 'tests/auto/qlistview/tst_qlistview.cpp')
-rw-r--r--tests/auto/qlistview/tst_qlistview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qlistview/tst_qlistview.cpp b/tests/auto/qlistview/tst_qlistview.cpp
index b51434f51e..499fb0b1e0 100644
--- a/tests/auto/qlistview/tst_qlistview.cpp
+++ b/tests/auto/qlistview/tst_qlistview.cpp
@@ -1630,7 +1630,9 @@ void tst_QListView::task254449_draggingItemToNegativeCoordinates()
} delegate;
list.setItemDelegate(&delegate);
- QTest::qWait(200); //makes sure the layout is done
+ delegate.numPaints = 0;
+ QTest::qWaitForWindowShown(&list); //makes sure the layout is done
+ QTRY_VERIFY(delegate.numPaints > 0);
const QPoint topLeft(-6, 0);
list.setPositionForIndex(topLeft, index);