summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp')
-rw-r--r--tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp b/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp
index 5105ed67ba..13da4430c2 100644
--- a/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp
+++ b/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp
@@ -919,13 +919,10 @@ void tst_QSpinBox::specialValue()
spin.setMaximum(100);
spin.setValue(50);
topWidget.show();
-#ifdef Q_WS_X11
- qt_x11_wait_for_window_manager(&topWidget);
-#endif
- QTest::qWait(100);
//make sure we have the focus (even if editingFinished fails)
qApp->setActiveWindow(&topWidget);
topWidget.activateWindow();
+ QVERIFY(QTest::qWaitForWindowActive(&topWidget));
spin.setFocus();
QTest::keyClick(&spin, Qt::Key_Return);