summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/pauseAnimation/pauseAnimation.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/visual/pauseAnimation/pauseAnimation.qml')
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/pauseAnimation.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/pauseAnimation/pauseAnimation.qml b/tests/auto/declarative/visual/pauseAnimation/pauseAnimation.qml
new file mode 100644
index 0000000..5c00f58
--- /dev/null
+++ b/tests/auto/declarative/visual/pauseAnimation/pauseAnimation.qml
@@ -0,0 +1,28 @@
+Rect {
+ id: rect
+ width: 120
+ height: 200
+ color: "white"
+ Image {
+ id: img
+ source: "pics/qtlogo.png"
+ x: 60-width/2
+ y: 200-height
+ y: SequentialAnimation {
+ running: true
+ repeat: true
+ NumericAnimation {
+ to: 0; duration: 500
+ easing: "easeInOutQuad"
+ }
+ NumericAnimation {
+ to: 200-img.height
+ easing: "easeOutBounce"
+ duration: 2000
+ }
+ PauseAnimation {
+ duration: 1000
+ }
+ }
+ }
+}