diff options
Diffstat (limited to 'tests/auto/widgets/itemviews/qcolumnview/tst_qcolumnview.cpp')
-rw-r--r-- | tests/auto/widgets/itemviews/qcolumnview/tst_qcolumnview.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/widgets/itemviews/qcolumnview/tst_qcolumnview.cpp b/tests/auto/widgets/itemviews/qcolumnview/tst_qcolumnview.cpp index 38e6d95ba4..58b34e8aea 100644 --- a/tests/auto/widgets/itemviews/qcolumnview/tst_qcolumnview.cpp +++ b/tests/auto/widgets/itemviews/qcolumnview/tst_qcolumnview.cpp @@ -703,7 +703,7 @@ void tst_QColumnView::moveGrip() view.setCurrentIndex(home); view.resize(640, 200); topLevel.show(); - QTest::qWait(ANIMATION_DELAY); + QVERIFY(QTest::qWaitForWindowActive(&topLevel)); int columnNum = view.createdColumns.count() - 2; QVERIFY(columnNum >= 0); @@ -934,7 +934,6 @@ void tst_QColumnView::parentCurrentIndex() QVERIFY(second.isValid()); QVERIFY(third.isValid()); view.setCurrentIndex(third); - QTest::qWait(ANIMATION_DELAY); QTRY_COMPARE(view.createdColumns[0]->currentIndex(), first); QTRY_COMPARE(view.createdColumns[1]->currentIndex(), second); QTRY_COMPARE(view.createdColumns[2]->currentIndex(), third); @@ -946,7 +945,6 @@ void tst_QColumnView::parentCurrentIndex() QVERIFY(second.isValid()); QVERIFY(third.isValid()); view.setCurrentIndex(third); - QTest::qWait(ANIMATION_DELAY); QTRY_COMPARE(view.createdColumns[0]->currentIndex(), first); QTRY_COMPARE(view.createdColumns[1]->currentIndex(), second); |