summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsproxywidget
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-01 10:03:26 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-01 10:11:51 +0200
commit91b58202c089ea8f4e150717cee8dbc40b8f903c (patch)
treed23fd5c1e0cd38899569f016f516aca15b2c15ec /tests/auto/qgraphicsproxywidget
parentac36357a8aa2a33491d1c308ade0a63a89a6590e (diff)
Stabilize tests on X11
Diffstat (limited to 'tests/auto/qgraphicsproxywidget')
-rw-r--r--tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp b/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
index 6e605165a8..00fae2f514 100644
--- a/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
+++ b/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
@@ -1301,12 +1301,12 @@ void tst_QGraphicsProxyWidget::paintEvent()
scene.addItem(&proxy);
//make sure we flush all the paint events
- QApplication::processEvents();
+ QTest::qWait(70);
QTRY_VERIFY(proxy.paintCount > 1);
proxy.paintCount = 0;
w->update();
- QApplication::processEvents();
+ QTest::qWait(30);
QTRY_COMPARE(proxy.paintCount, 1); //the widget should have been painted now
}