summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp')
-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));