From 94be95934fb3f0ab339fd169ef529f05f1a6707d Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Mon, 12 Nov 2012 15:28:14 +0100 Subject: Fix failing tst_QWidget_window::tst_showWithoutActivating() test. Change-Id: I3d7acf98f12ff71a6cea803ff7af430c66b972b8 Reviewed-by: Andy Shaw --- tests/auto/qwidget_window/tst_qwidget_window.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/qwidget_window/tst_qwidget_window.cpp b/tests/auto/qwidget_window/tst_qwidget_window.cpp index 505ee29..c8b2762 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(); -- cgit v0.12