diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/animation/pauseAnimation/pauseAnimation-visual.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/animation/pauseAnimation/pauseAnimation-visual.qml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/animation/pauseAnimation/pauseAnimation-visual.qml b/tests/auto/declarative/qmlvisual/animation/pauseAnimation/pauseAnimation-visual.qml new file mode 100644 index 0000000..8830170 --- /dev/null +++ b/tests/auto/declarative/qmlvisual/animation/pauseAnimation/pauseAnimation-visual.qml @@ -0,0 +1,36 @@ +import Qt 4.6 + +/* +This test shows a bouncing logo. +When the test starts the logo should be resting at the bottom. It should immediately move +to the top, and then fall down to bounce at the bottom. There should be a pause, and then +one repeat of the sequence. +*/ + +Rectangle { + id: rect + width: 120 + height: 200 + color: "white" + Image { + id: img + source: "pics/qtlogo.png" + x: 60-width/2 + y: 100 + SequentialAnimation on y { + loops: Animation.Infinite + NumberAnimation { + to: 0; duration: 500 + easing.type: "InOutQuad" + } + NumberAnimation { + to: 100 + easing.type: "OutBounce" + duration: 2000 + } + PauseAnimation { + duration: 1000 + } + } + } +} |