diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-25 00:09:17 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-25 00:09:17 (GMT) |
commit | 13d9f49577dd5be8c01792b6d7709c2e9b28aa95 (patch) | |
tree | 158d3b0c437fb88a6f103602f1e392c332bb7a0e /examples/declarative/fonts/hello.qml | |
parent | 668c9d63d27b2a925c18f3128747c20b37560569 (diff) | |
download | Qt-13d9f49577dd5be8c01792b6d7709c2e9b28aa95.zip Qt-13d9f49577dd5be8c01792b6d7709c2e9b28aa95.tar.gz Qt-13d9f49577dd5be8c01792b6d7709c2e9b28aa95.tar.bz2 |
Replace Animation's repeat property with loops.
You can now loop a fixed number of times as well as forever. The old
repeat behavior (loop forever) can be acheived with loops: Qt.Infinite.
Diffstat (limited to 'examples/declarative/fonts/hello.qml')
-rw-r--r-- | examples/declarative/fonts/hello.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/fonts/hello.qml b/examples/declarative/fonts/hello.qml index 334409e..f703167 100644 --- a/examples/declarative/fonts/hello.qml +++ b/examples/declarative/fonts/hello.qml @@ -10,7 +10,7 @@ Rectangle { text: "Hello world!"; font.pixelSize: 60 SequentialAnimation on font.letterSpacing { - repeat: true; + loops: Qt.Infinite; NumberAnimation { from: 100; to: 300; easing.type: "InQuad"; duration: 3000 } ScriptAction { script: { container.y = (screen.height / 4) + (Math.random() * screen.height / 2) @@ -18,7 +18,7 @@ Rectangle { } } } SequentialAnimation on opacity { - repeat: true; + loops: Qt.Infinite; NumberAnimation { from: 1; to: 0; duration: 2600 } PauseAnimation { duration: 400 } } |