diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-10-08 01:06:34 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-10-08 01:06:34 (GMT) |
commit | 8480eb288990c44c9ab337f42898bc4ef6dc62f4 (patch) | |
tree | c6b81875d9da441b825e4a6ae6996105896526c1 /tests/auto/declarative/qdeclarativebehaviors | |
parent | 33245164dc62d27f88a8914d1112f3a4155fa174 (diff) | |
download | Qt-8480eb288990c44c9ab337f42898bc4ef6dc62f4.zip Qt-8480eb288990c44c9ab337f42898bc4ef6dc62f4.tar.gz Qt-8480eb288990c44c9ab337f42898bc4ef6dc62f4.tar.bz2 |
Don't allow multiple values to be assigned to a singular property
Task-number: QTBUG-14005
Diffstat (limited to 'tests/auto/declarative/qdeclarativebehaviors')
-rw-r--r-- | tests/auto/declarative/qdeclarativebehaviors/data/reassignedAnimation.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/reassignedAnimation.qml b/tests/auto/declarative/qdeclarativebehaviors/data/reassignedAnimation.qml index 9fca5c3..56ac216 100644 --- a/tests/auto/declarative/qdeclarativebehaviors/data/reassignedAnimation.qml +++ b/tests/auto/declarative/qdeclarativebehaviors/data/reassignedAnimation.qml @@ -7,9 +7,9 @@ Rectangle { objectName: "MyRect" width: 100; height: 100; color: "green" Behavior on x { + id: myBehavior objectName: "MyBehavior" NumberAnimation {id: na1; duration: 200 } - NumberAnimation {id: na2; duration: 1000 } } } MouseArea { @@ -24,4 +24,9 @@ Rectangle { x: 200 } } + + NumberAnimation {id: na2; duration: 1000 } + Component.onCompleted: { + myBehavior.animation = na2; + } } |