summaryrefslogtreecommitdiff
path: root/tests/auto/qheaderview/tst_qheaderview.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-23 19:48:16 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-23 20:12:40 +0200
commitd2180e2fc3c56d56cd073a896d8449181ca28136 (patch)
treeb0e2cd889f700e82920ff706c591457e00680c60 /tests/auto/qheaderview/tst_qheaderview.cpp
parent0f462990247d71e598346a8f96faf6d04cd4515e (diff)
downloadqt4-tools-d2180e2fc3c56d56cd073a896d8449181ca28136.tar.gz
Stabilize more test
Diffstat (limited to 'tests/auto/qheaderview/tst_qheaderview.cpp')
-rw-r--r--tests/auto/qheaderview/tst_qheaderview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qheaderview/tst_qheaderview.cpp b/tests/auto/qheaderview/tst_qheaderview.cpp
index 0be895bb1a..920231d83d 100644
--- a/tests/auto/qheaderview/tst_qheaderview.cpp
+++ b/tests/auto/qheaderview/tst_qheaderview.cpp
@@ -1434,7 +1434,8 @@ void tst_QHeaderView::focusPolicy()
widget.show();
widget.setFocus(Qt::OtherFocusReason);
- QTest::qWait(100);
+ QApplication::setActiveWindow(&widget);
+ QTest::qWaitForWindowShown(&widget);
widget.activateWindow();
QTest::qWait(100);