From 76b8df83645c66c15d58bf12d7ffa3ea944ecb07 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 30 Sep 2009 16:35:12 +0200 Subject: Make sure to process the events in QTest::qWaitForWindowShown on X11 qt_x11_wait_for_window_manager doesn't necesserly process the events Reviewed-by: Denis --- src/testlib/qtestsystem.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/testlib/qtestsystem.h b/src/testlib/qtestsystem.h index a9a2193..e8b8359 100644 --- a/src/testlib/qtestsystem.h +++ b/src/testlib/qtestsystem.h @@ -75,6 +75,7 @@ namespace QTest { #if defined(Q_WS_X11) qt_x11_wait_for_window_manager(window); + QApplication::processEvents(); #elif defined(Q_WS_QWS) Q_UNUSED(window); qWait(100); -- cgit v0.12