summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtextbrowser/tst_qtextbrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtextbrowser/tst_qtextbrowser.cpp')
-rw-r--r--tests/auto/qtextbrowser/tst_qtextbrowser.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qtextbrowser/tst_qtextbrowser.cpp b/tests/auto/qtextbrowser/tst_qtextbrowser.cpp
index 1f06dcf..829d580 100644
--- a/tests/auto/qtextbrowser/tst_qtextbrowser.cpp
+++ b/tests/auto/qtextbrowser/tst_qtextbrowser.cpp
@@ -63,10 +63,8 @@ class TestBrowser : public QTextBrowser
public:
inline TestBrowser() : htmlLoadAttempts(0) {
show();
-#ifdef Q_WS_X11
- qt_x11_wait_for_window_manager(this);
-#endif
QApplication::setActiveWindow(this);
+ QTest::qWaitForWindowShown(this);
activateWindow();
setFocus();
QTest::qWait(50);