diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-04-08 04:53:29 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-04-08 05:06:13 (GMT) |
commit | cabf4f41a51599b3527cd848af14966986430566 (patch) | |
tree | d4061ea2d54d1ccfffe531b1d3cd27bd212f2564 | |
parent | 62fb142331fe8780a38a3ec84cf0e9d5eada316e (diff) | |
download | Qt-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.qml | 5 |
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 } } } } |