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/Link.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/Link.qml')
-rw-r--r-- | demos/declarative/snake/content/Link.qml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/declarative/snake/content/Link.qml b/demos/declarative/snake/content/Link.qml index 9aa6006..942008d 100644 --- a/demos/declarative/snake/content/Link.qml +++ b/demos/declarative/snake/content/Link.qml @@ -86,7 +86,6 @@ Item { id:link } opacity: 0 - Behavior on opacity { NumberAnimation { duration: 200 } } } @@ -114,4 +113,11 @@ Item { id:link PropertyChanges { target: img; opacity: 0 } } ] + + transitions: [ + Transition { + NumberAnimation { target: img; property: "opacity"; duration: 200 } + } + ] + } |