diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-09-15 08:49:45 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-09-15 08:50:22 (GMT) |
commit | cd764477c1fca556db2144769aa5e468f6e24e3c (patch) | |
tree | 81bc20c6865ceea929a073a11ad8704777d14c40 /tests/auto/qgraphicsitem | |
parent | c4f6d22d8bb59560f7a727bb6e08b0ff53793c6e (diff) | |
download | Qt-cd764477c1fca556db2144769aa5e468f6e24e3c.zip Qt-cd764477c1fca556db2144769aa5e468f6e24e3c.tar.gz Qt-cd764477c1fca556db2144769aa5e468f6e24e3c.tar.bz2 |
Fix auto-test in QGraphicsItem.
Diffstat (limited to 'tests/auto/qgraphicsitem')
-rw-r--r-- | tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 6 |
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)); |