diff options
author | David Boddie <dboddie@trolltech.com> | 2010-08-17 13:31:48 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-08-17 13:31:48 (GMT) |
commit | 86c3fed122b8a6e47904d958f8c50fa19e668434 (patch) | |
tree | 17d83fa3578a071a5fec723ad1455f421b2638d2 /doc/src/snippets/declarative/qml-intro/sequential-animation2.qml | |
parent | 12ebf6c45428e303e0f238d59f144f3b4816ec3b (diff) | |
download | Qt-86c3fed122b8a6e47904d958f8c50fa19e668434.zip Qt-86c3fed122b8a6e47904d958f8c50fa19e668434.tar.gz Qt-86c3fed122b8a6e47904d958f8c50fa19e668434.tar.bz2 |
Doc: Started work to tidy up existing QML docs.
Reviewed-by: Trust Me
Diffstat (limited to 'doc/src/snippets/declarative/qml-intro/sequential-animation2.qml')
-rw-r--r-- | doc/src/snippets/declarative/qml-intro/sequential-animation2.qml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/qml-intro/sequential-animation2.qml b/doc/src/snippets/declarative/qml-intro/sequential-animation2.qml new file mode 100644 index 0000000..08c598b --- /dev/null +++ b/doc/src/snippets/declarative/qml-intro/sequential-animation2.qml @@ -0,0 +1,33 @@ +import Qt 4.7 + +Rectangle { + id: mainRec + width: 600 + height: 400 + z: 0 + +//! [adding a sequential animation] + Image { + id: image1 + source: "images/qt-logo.png" + width: 100; height: 100 + + SequentialAnimation on x { + loops: Animation.Infinite + NumberAnimation { + from: 20; to: 450; easing.type: "InOutQuad"; + duration: 2000 + } + PauseAnimation { duration: 500 } + } + } +//! [adding a sequential animation] + + Image { + id: image2 + source: "images/qt-logo.png" + width: 100; height: 100 + x: (mainRec.width - 100)/2; y: (mainRec.height - 100)/2 + z: 2 + } +} |