diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-11-19 14:44:26 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-11-19 14:45:50 (GMT) |
commit | c48ba6b516b46775439dc3c86b21bf9ce9c7f23a (patch) | |
tree | 01f86de93ebbc4ee2f18b3ddfcb4f4b8b0748fab | |
parent | 10221602edb39b7c7ed9e0c9608f64a539adcdec (diff) | |
download | Qt-c48ba6b516b46775439dc3c86b21bf9ce9c7f23a.zip Qt-c48ba6b516b46775439dc3c86b21bf9ce9c7f23a.tar.gz Qt-c48ba6b516b46775439dc3c86b21bf9ce9c7f23a.tar.bz2 |
Add a QTest::qWaitForWindowShown for a failing qlistview autotest
Reviewed-by: trustme
-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 596ac9b..605b3e3 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; |