Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / animation / loop / loop.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     id: wrapper
5     width: 600
6     height: 100
7
8     Rectangle {
9         id: redRect
10         width: 100; height: 100
11         color: Qt.rgba(1,0,0)
12         /* This should produce an animation that starts at 0, animates smoothly
13            to 100, jumps to 200, animates smoothly to 400, animates smoothly
14            back to 100, jumps to 200, and so on.
15         */
16         SequentialAnimation on x {
17             loops: Animation.Infinite
18             NumberAnimation { to: 100; duration: 1000 }
19             NumberAnimation { from: 200; to: 400; duration: 1000 }
20         }
21
22     }
23
24 }