summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsscene
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qgraphicsscene')
-rw-r--r--tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp b/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp
index 547e7f5..6743fbe 100644
--- a/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp
+++ b/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp
@@ -3989,7 +3989,7 @@ void tst_QGraphicsScene::polishItems2()
// Wait for the polish event to be delivered.
QVERIFY(!item->polished);
- QApplication::processEvents();
+ QApplication::sendPostedEvents(&scene, QEvent::MetaCall);
QVERIFY(item->polished);
// We deleted the children we added above, but we also
@@ -4000,7 +4000,7 @@ void tst_QGraphicsScene::polishItems2()
foreach (QGraphicsItem *child, children)
QVERIFY(!static_cast<PolishItem *>(child)->polished);
- QApplication::processEvents();
+ QApplication::sendPostedEvents(&scene, QEvent::MetaCall);
foreach (QGraphicsItem *child, children)
QVERIFY(static_cast<PolishItem *>(child)->polished);
}