diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-08-30 05:22:28 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-08-30 05:22:28 (GMT) |
commit | 75fc8a8dd52156b2089764ce82925289877eee1d (patch) | |
tree | 608754856cf89c768e246f7405f24670d37ecad3 /demos/declarative/snake/content/Cookie.qml | |
parent | 7c81d90e490a95c67e0d0c9a184be479bd59817a (diff) | |
download | Qt-75fc8a8dd52156b2089764ce82925289877eee1d.zip Qt-75fc8a8dd52156b2089764ce82925289877eee1d.tar.gz Qt-75fc8a8dd52156b2089764ce82925289877eee1d.tar.bz2 |
Snake: Don't use Behavior with states.
Changing states mid-animation confuses states where property value
is not specified explicitly for each state.
Task-number: QT-3823
Diffstat (limited to 'demos/declarative/snake/content/Cookie.qml')
-rw-r--r-- | demos/declarative/snake/content/Cookie.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/demos/declarative/snake/content/Cookie.qml b/demos/declarative/snake/content/Cookie.qml index e67a7af..eb57fd2 100644 --- a/demos/declarative/snake/content/Cookie.qml +++ b/demos/declarative/snake/content/Cookie.qml @@ -59,7 +59,6 @@ Item { anchors.fill: parent source: "pics/cookie.png" opacity: 0 - Behavior on opacity { NumberAnimation { duration: 100 } } Text { font.bold: true anchors.verticalCenter: parent.verticalCenter @@ -87,4 +86,9 @@ Item { PropertyChanges { target: img; opacity: 0 } } ] + transitions: [ + Transition { + NumberAnimation { target: img; property: "opacity"; duration: 100 } + } + ] } |