summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-01-26 13:14:47 (GMT)
committerJesper Thomschutz <jesper.thomschutz@nokia.com>2010-01-28 15:43:02 (GMT)
commitaabbe74a23b71bf35d63831aeded9600ee43ba0c (patch)
treee58ba75a896843ae231e27e8fc2bdd6aec5c9e9d /tests
parentd2b39e3510e28da04b93cf726ef57e103d680d1d (diff)
downloadQt-aabbe74a23b71bf35d63831aeded9600ee43ba0c.zip
Qt-aabbe74a23b71bf35d63831aeded9600ee43ba0c.tar.gz
Qt-aabbe74a23b71bf35d63831aeded9600ee43ba0c.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.
Diffstat (limited to 'tests')
-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);
}