diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-11-19 15:44:26 +0100 |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-11-19 15:45:50 +0100 |
commit | c48ba6b516b46775439dc3c86b21bf9ce9c7f23a (patch) | |
tree | 01f86de93ebbc4ee2f18b3ddfcb4f4b8b0748fab /tests/auto/qlistview/tst_qlistview.cpp | |
parent | 10221602edb39b7c7ed9e0c9608f64a539adcdec (diff) | |
download | qt4-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.cpp | 2 |
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; |