summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/animations/tst_animations.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-04 02:25:20 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-04 02:25:20 (GMT)
commita30e67378bf56bac642d5480f8b9f3e5749dc2f6 (patch)
tree82a4fed0a1afbf3b3e9c6c5721c8f4fd21e1c406 /tests/auto/declarative/animations/tst_animations.cpp
parent436b0fff9d9ba95c0fe582f3b71d15d5a9a8535f (diff)
downloadQt-a30e67378bf56bac642d5480f8b9f3e5749dc2f6.zip
Qt-a30e67378bf56bac642d5480f8b9f3e5749dc2f6.tar.gz
Qt-a30e67378bf56bac642d5480f8b9f3e5749dc2f6.tar.bz2
Cleanup.
Diffstat (limited to 'tests/auto/declarative/animations/tst_animations.cpp')
-rw-r--r--tests/auto/declarative/animations/tst_animations.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/animations/tst_animations.cpp b/tests/auto/declarative/animations/tst_animations.cpp
index 73bed79..a6cb490 100644
--- a/tests/auto/declarative/animations/tst_animations.cpp
+++ b/tests/auto/declarative/animations/tst_animations.cpp
@@ -284,7 +284,7 @@ void tst_animations::badTypes()
rect->setState("state1");
QTest::qWait(1000 + 50);
- QmlGraphicsRectangle *myRect = qobject_cast<QmlGraphicsRectangle*>(rect->QGraphicsObject::children().at(3)); //### not robust
+ QmlGraphicsRectangle *myRect = rect->findChild<QmlGraphicsRectangle*>("MyRect");
QVERIFY(myRect);
QCOMPARE(myRect->x(),qreal(200));
}
@@ -324,7 +324,7 @@ void tst_animations::mixedTypes()
rect->setState("state1");
QTest::qWait(500);
- QmlGraphicsRectangle *myRect = qobject_cast<QmlGraphicsRectangle*>(rect->QGraphicsObject::children().at(3)); //### not robust
+ QmlGraphicsRectangle *myRect = rect->findChild<QmlGraphicsRectangle*>("MyRect");
QVERIFY(myRect);
//rather inexact -- is there a better way?
@@ -340,7 +340,7 @@ void tst_animations::mixedTypes()
rect->setState("state1");
QTest::qWait(500);
- QmlGraphicsRectangle *myRect = qobject_cast<QmlGraphicsRectangle*>(rect->QGraphicsObject::children().at(3)); //### not robust
+ QmlGraphicsRectangle *myRect = rect->findChild<QmlGraphicsRectangle*>("MyRect");
QVERIFY(myRect);
//rather inexact -- is there a better way?