summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-01-26 13:14:47 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2010-01-27 15:30:29 (GMT)
commit0c85477397531cd624b8558bfa2cc6b3ccc9572c (patch)
treef608c873f01b878f75132874fa337a0afe69f2a5
parentcb9ff7135854b16fdebb637b28284d1e1883044c (diff)
downloadQt-0c85477397531cd624b8558bfa2cc6b3ccc9572c.zip
Qt-0c85477397531cd624b8558bfa2cc6b3ccc9572c.tar.gz
Qt-0c85477397531cd624b8558bfa2cc6b3ccc9572c.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.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);
}