diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-23 19:03:01 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-23 20:22:15 (GMT) |
commit | f6b942b88ed2519b73c540120fde73390716173f (patch) | |
tree | 378c5b425afd0466efa224e725cbcaea2a4ba26a /tests/auto/qstackedlayout | |
parent | 5c5a6b387319095a2c2a589bb1e1d67b51854fc1 (diff) | |
download | Qt-f6b942b88ed2519b73c540120fde73390716173f.zip Qt-f6b942b88ed2519b73c540120fde73390716173f.tar.gz Qt-f6b942b88ed2519b73c540120fde73390716173f.tar.bz2 |
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 cdf84811..51f6c03 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(); |