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 /src/declarative/qml/qdeclarativedom.cpp | |
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 'src/declarative/qml/qdeclarativedom.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativedom.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/declarative/qml/qdeclarativedom.cpp b/src/declarative/qml/qdeclarativedom.cpp index cb56ead..e374a93 100644 --- a/src/declarative/qml/qdeclarativedom.cpp +++ b/src/declarative/qml/qdeclarativedom.cpp @@ -1107,8 +1107,7 @@ Rectangle { x: NumberAnimation { from: 0 to: 100 - repeat: true - running: true + loops: Qt.Infinite } } \endqml @@ -1156,8 +1155,7 @@ Rectangle { x: NumberAnimation { from: 0 to: 100 - repeat: true - running: true + loops: Qt.Infinite } } \endqml |