diff -r ef0373b55136 -r 758a864f9613 demos/declarative/snake/content/Cookie.qml --- a/demos/declarative/snake/content/Cookie.qml Fri Sep 17 08:34:18 2010 +0300 +++ b/demos/declarative/snake/content/Cookie.qml Mon Oct 04 01:19:32 2010 +0300 @@ -59,7 +59,6 @@ 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 @@ PropertyChanges { target: img; opacity: 0 } } ] + transitions: [ + Transition { + NumberAnimation { target: img; property: "opacity"; duration: 100 } + } + ] }