diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-23 21:03:01 +0200 |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-23 22:22:15 +0200 |
commit | f6b942b88ed2519b73c540120fde73390716173f (patch) | |
tree | 378c5b425afd0466efa224e725cbcaea2a4ba26a /tests/auto/qstackedlayout | |
parent | 5c5a6b387319095a2c2a589bb1e1d67b51854fc1 (diff) |
Stabilize more tests
Diffstat (limited to 'tests/auto/qstackedlayout')
-rw-r--r-- | tests/auto/qstackedlayout/tst_qstackedlayout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qstackedlayout/tst_qstackedlayout.cpp b/tests/auto/qstackedlayout/tst_qstackedlayout.cpp index cdf8481100..51f6c03b1a 100644 --- a/tests/auto/qstackedlayout/tst_qstackedlayout.cpp +++ b/tests/auto/qstackedlayout/tst_qstackedlayout.cpp @@ -353,8 +353,9 @@ void tst_QStackedLayout::keepFocusAfterSetCurrent() stackLayout->setCurrentIndex(0); testWidget->show(); - QTest::qWait(25); QApplication::setActiveWindow(testWidget); + QTest::qWaitForWindowShown(testWidget); + QApplication::processEvents(); edit1->setFocus(); edit1->activateWindow(); |