summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@digia.com>2012-11-12 15:28:14 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-18 21:37:21 +0100
commit94be95934fb3f0ab339fd169ef529f05f1a6707d (patch)
tree262fab6596ed269d9917b5c4c069cfea65adf15f
parentf319483be7f0c8c91b3ebc4e9089f4747a2d7002 (diff)
Fix failing tst_QWidget_window::tst_showWithoutActivating() test.
Change-Id: I3d7acf98f12ff71a6cea803ff7af430c66b972b8 Reviewed-by: Andy Shaw <andy.shaw@digia.com>
-rw-r--r--tests/auto/qwidget_window/tst_qwidget_window.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qwidget_window/tst_qwidget_window.cpp b/tests/auto/qwidget_window/tst_qwidget_window.cpp
index 505ee29a3c..c8b276247f 100644
--- a/tests/auto/qwidget_window/tst_qwidget_window.cpp
+++ b/tests/auto/qwidget_window/tst_qwidget_window.cpp
@@ -299,6 +299,7 @@ void tst_QWidget_window::tst_showWithoutActivating()
QLineEdit *lineEdit = new QLineEdit;
lineEdit->setAttribute(Qt::WA_ShowWithoutActivating, true);
lineEdit->show();
+ QTest::qWaitForWindowShown(lineEdit);
lineEdit->setAttribute(Qt::WA_ShowWithoutActivating, false);
lineEdit->raise();
lineEdit->activateWindow();