summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativebehaviors/data
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-07-12 23:45:30 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-07-13 00:01:09 (GMT)
commit5efd577b1aea64f422e08ca8d54e041fa4b20783 (patch)
tree1de54549136dd2047a9678d77368d4b30e783788 /tests/auto/declarative/qdeclarativebehaviors/data
parentbfa139ff61d1e5b495fe92be6073ccbdcdc91c77 (diff)
downloadQt-5efd577b1aea64f422e08ca8d54e041fa4b20783.zip
Qt-5efd577b1aea64f422e08ca8d54e041fa4b20783.tar.gz
Qt-5efd577b1aea64f422e08ca8d54e041fa4b20783.tar.bz2
Autotest for QTBUG-5491 (Animation in a Behavior doesn't update running)
Diffstat (limited to 'tests/auto/declarative/qdeclarativebehaviors/data')
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/runningTrue.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/runningTrue.qml b/tests/auto/declarative/qdeclarativebehaviors/data/runningTrue.qml
new file mode 100644
index 0000000..d439875
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/runningTrue.qml
@@ -0,0 +1,20 @@
+import Qt 4.7
+
+Rectangle {
+ id: root
+ width:200; height:200
+
+ property real myValue: 0
+
+ Rectangle {
+ anchors.centerIn: parent
+ width: 100
+ height: 100
+ color: "green"
+ smooth: true
+ rotation: myValue
+ Behavior on rotation {
+ RotationAnimation { id: rotAnim; objectName: "rotAnim"; direction: RotationAnimation.Shortest }
+ }
+ }
+}