summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-09-15 08:49:45 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-09-15 08:50:22 (GMT)
commitcd764477c1fca556db2144769aa5e468f6e24e3c (patch)
tree81bc20c6865ceea929a073a11ad8704777d14c40 /tests
parentc4f6d22d8bb59560f7a727bb6e08b0ff53793c6e (diff)
downloadQt-cd764477c1fca556db2144769aa5e468f6e24e3c.zip
Qt-cd764477c1fca556db2144769aa5e468f6e24e3c.tar.gz
Qt-cd764477c1fca556db2144769aa5e468f6e24e3c.tar.bz2
Fix auto-test in QGraphicsItem.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index c2acac9..96580f6 100644
--- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -8171,8 +8171,6 @@ public:
painter->setBrush(brush);
painter->drawRect(boundingRect());
}
-
-public slots :
void move()
{
setPos(-100,-100);
@@ -8222,11 +8220,11 @@ void tst_QGraphicsItem::ensureDirtySceneTransform()
QGraphicsView view(&scene);
view.show();
- QTest::qWait(500);
+ QTRY_COMPARE(QApplication::activeWindow(), &view);
//We move the parent
parent->move();
- QTest::qWait(500);
+ QApplication::processEvents();
//We check if all items moved
QCOMPARE(child->pos(), QPointF(10, 10));