summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-25 00:09:17 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-25 00:09:17 (GMT)
commit13d9f49577dd5be8c01792b6d7709c2e9b28aa95 (patch)
tree158d3b0c437fb88a6f103602f1e392c332bb7a0e /demos/declarative/flickr
parent668c9d63d27b2a925c18f3128747c20b37560569 (diff)
downloadQt-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 'demos/declarative/flickr')
-rw-r--r--demos/declarative/flickr/common/Loading.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/declarative/flickr/common/Loading.qml b/demos/declarative/flickr/common/Loading.qml
index 938a080..87a4ef9 100644
--- a/demos/declarative/flickr/common/Loading.qml
+++ b/demos/declarative/flickr/common/Loading.qml
@@ -1,8 +1,8 @@
import Qt 4.6
Image {
- id: loading; source: "pics/loading.png"; transformOrigin: "Center"
+ id: loading; source: "pics/loading.png"
NumberAnimation on rotation {
- from: 0; to: 360; running: loading.visible == true; repeat: true; duration: 900
+ from: 0; to: 360; running: loading.visible == true; loops: Qt.Infinite; duration: 900
}
}