summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-08 04:53:29 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-08 05:06:13 (GMT)
commitcabf4f41a51599b3527cd848af14966986430566 (patch)
treed4061ea2d54d1ccfffe531b1d3cd27bd212f2564
parent62fb142331fe8780a38a3ec84cf0e9d5eada316e (diff)
downloadQt-cabf4f41a51599b3527cd848af14966986430566.zip
Qt-cabf4f41a51599b3527cd848af14966986430566.tar.gz
Qt-cabf4f41a51599b3527cd848af14966986430566.tar.bz2
Fix tst_qdeclarativesmoothedanimation::behavior
Added an 'id' to the animations inside Behaviors to avoid deferred creation.
-rw-r--r--tests/auto/declarative/qdeclarativesmoothedanimation/data/smoothedanimationBehavior.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativesmoothedanimation/data/smoothedanimationBehavior.qml b/tests/auto/declarative/qdeclarativesmoothedanimation/data/smoothedanimationBehavior.qml
index eb06344..ec35067 100644
--- a/tests/auto/declarative/qdeclarativesmoothedanimation/data/smoothedanimationBehavior.qml
+++ b/tests/auto/declarative/qdeclarativesmoothedanimation/data/smoothedanimationBehavior.qml
@@ -17,7 +17,8 @@ Rectangle {
color: "green"
width: 60; height: 60;
x: rect1.x; y: rect1.y;
- Behavior on x { SmoothedAnimation { objectName: "easeX"; velocity: 400 } }
- Behavior on y { SmoothedAnimation { objectName: "easeY"; velocity: 400 } }
+ // id are needed for SmoothedAnimation in order to avoid deferred creation
+ Behavior on x { SmoothedAnimation { id: anim1; objectName: "easeX"; velocity: 400 } }
+ Behavior on y { SmoothedAnimation { id: anim2; objectName: "easeY"; velocity: 400 } }
}
}