summaryrefslogtreecommitdiff
path: root/tests/auto/qlistview/tst_qlistview.cpp
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-11-19 15:44:26 +0100
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-11-19 15:45:50 +0100
commitc48ba6b516b46775439dc3c86b21bf9ce9c7f23a (patch)
tree01f86de93ebbc4ee2f18b3ddfcb4f4b8b0748fab /tests/auto/qlistview/tst_qlistview.cpp
parent10221602edb39b7c7ed9e0c9608f64a539adcdec (diff)
downloadqt4-tools-c48ba6b516b46775439dc3c86b21bf9ce9c7f23a.tar.gz
Add a QTest::qWaitForWindowShown for a failing qlistview autotest
Reviewed-by: trustme
Diffstat (limited to 'tests/auto/qlistview/tst_qlistview.cpp')
-rw-r--r--tests/auto/qlistview/tst_qlistview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qlistview/tst_qlistview.cpp b/tests/auto/qlistview/tst_qlistview.cpp
index 596ac9b76b..605b3e3457 100644
--- a/tests/auto/qlistview/tst_qlistview.cpp
+++ b/tests/auto/qlistview/tst_qlistview.cpp
@@ -1895,6 +1895,8 @@ void tst_QListView::taskQTBUG_5877_skippingItemInPageDownUp()
vu.setModel(&model);
vu.show();
+ QTest::qWaitForWindowShown(&vu);
+
int itemHeight = vu.visualRect(model.index(0, 0)).height();
int visibleRowCount = vu.height() / itemHeight;
int scrolledRowCount = visibleRowCount - 1;