From cd764477c1fca556db2144769aa5e468f6e24e3c Mon Sep 17 00:00:00 2001 From: Alexis Menard Date: Tue, 15 Sep 2009 10:49:45 +0200 Subject: Fix auto-test in QGraphicsItem. --- tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 6 ++---- 1 file 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)); -- cgit v0.12