aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/timelineTestApp/test01.qml
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2018-04-23 18:02:15 +0200
committerTim Jenssen <tim.jenssen@qt.io>2018-04-27 14:07:23 +0000
commitb2cd5db1e5bfcd168bce025b126d4c5a2fc9e0ae (patch)
tree5c7c4af9e7c536d1172271b6b2f7849668778c27 /tests/manual/timelineTestApp/test01.qml
parente60155d6af1a9e1c86bfb7679dbd92ce616ad8fd (diff)
Add TimelineAnimation
* New api to define animation clips * Special animation type for timeline * Adding ping pong for TimelineAnimation * Adjusting manual tests * Adding new manual tests Change-Id: Ic670b389062ef4ac92e000bc99574e5fa04a7006 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'tests/manual/timelineTestApp/test01.qml')
-rw-r--r--tests/manual/timelineTestApp/test01.qml24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/manual/timelineTestApp/test01.qml b/tests/manual/timelineTestApp/test01.qml
index d0810aa..d395bbd 100644
--- a/tests/manual/timelineTestApp/test01.qml
+++ b/tests/manual/timelineTestApp/test01.qml
@@ -37,21 +37,10 @@ Item {
color: "blue"
MouseArea {
anchors.fill: parent
- onClicked: animation.start()
+ onClicked: animation.restart()
}
}
- NumberAnimation {
- id: animation
- target: timeline
- property: "currentFrame"
- easing.type: Easing.InOutQuad
- duration: 2000
- from: 0
- to: 100
- running: true
- }
-
Item {
width: 480
height: 480
@@ -65,6 +54,17 @@ Item {
enabled: true
+ animations: [
+ TimelineAnimation {
+ id: animation
+ duration: 2000
+ from: 0
+ to: 100
+ running: false
+ }
+
+ ]
+
KeyframeGroup {
target: rectangle
property: "x"