diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-01-26 13:14:47 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-01-26 13:14:47 (GMT) |
commit | 5ccd8ceb06a9be29f773d170d5dd8c67a8d6c86d (patch) | |
tree | 2471054f1aba5b2b5d8693e06c1601cb81232182 | |
parent | a69cb9bb828ed0c8e1a5caca62eb5d2960952d17 (diff) | |
download | Qt-5ccd8ceb06a9be29f773d170d5dd8c67a8d6c86d.zip Qt-5ccd8ceb06a9be29f773d170d5dd8c67a8d6c86d.tar.gz Qt-5ccd8ceb06a9be29f773d170d5dd8c67a8d6c86d.tar.bz2 |
Stabilize tst_QGraphicsScene::polishItems2 (new test)
We are only interested in getting the posted MetaCall events delivered,
so we can get away with sendPostedEvents() instead of processEvents().
Makes the test also pass on Mac g++ carbon 32.
-rw-r--r-- | tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp | 4 |
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); } |