summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/animation/parallelAnimation/parallelAnimation.qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-11-11 04:28:47 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-11-11 04:28:47 (GMT)
commitb54b0e55449b1b15dcdd3601b7ee176ee67abe27 (patch)
tree3edd46742714391b179c05b2dba87d949ca9d9e2 /tests/auto/declarative/visual/animation/parallelAnimation/parallelAnimation.qml
parentfeae45e1a0b6079881e5e3493ed6f7bfaf83be45 (diff)
downloadQt-b54b0e55449b1b15dcdd3601b7ee176ee67abe27.zip
Qt-b54b0e55449b1b15dcdd3601b7ee176ee67abe27.tar.gz
Qt-b54b0e55449b1b15dcdd3601b7ee176ee67abe27.tar.bz2
Visual animation tests.
Move them to a common directory, add a new one, and fix a failing one.
Diffstat (limited to 'tests/auto/declarative/visual/animation/parallelAnimation/parallelAnimation.qml')
-rw-r--r--tests/auto/declarative/visual/animation/parallelAnimation/parallelAnimation.qml43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/animation/parallelAnimation/parallelAnimation.qml b/tests/auto/declarative/visual/animation/parallelAnimation/parallelAnimation.qml
new file mode 100644
index 0000000..9e0422f
--- /dev/null
+++ b/tests/auto/declarative/visual/animation/parallelAnimation/parallelAnimation.qml
@@ -0,0 +1,43 @@
+import Qt 4.6
+
+Rectangle {
+ width: 400; height: 200
+ Rectangle {
+ id: redRect
+ width: 100; height: 100
+ color: "red"
+ }
+ Rectangle {
+ id: redRect2
+ width: 100; height: 100
+ y: 100
+ color: "red"
+ }
+
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: parent.state = "state1"
+ }
+
+ states: State {
+ name: "state1"
+ PropertyChanges {
+ target: redRect
+ x: 300
+ color: "purple"
+ }
+ PropertyChanges {
+ target: redRect2
+ x: 300
+ color: "purple"
+ }
+ }
+
+ transitions: Transition {
+ PropertyAnimation { matchTargets: redRect; matchProperties: "x,color"; duration: 300 }
+ ParallelAnimation {
+ NumberAnimation { matchTargets: redRect2; matchProperties: "x"; duration: 300 }
+ ColorAnimation { matchTargets: redRect2; matchProperties: "color"; duration: 300 }
+ }
+ }
+}