diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-15 04:12:40 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-15 04:12:40 (GMT) |
commit | 5b849b15fe89c3645a81368faf6b8574c337b4c5 (patch) | |
tree | 67b17ae22fa53a56b5566a26ffc27c0a9fdbfad4 /demos | |
parent | 68df6c65d5de0c03fd2f1ce00540f419108327de (diff) | |
parent | 68e47e91af6edca3c714cc3258b65dd88c0ee1e4 (diff) | |
download | Qt-5b849b15fe89c3645a81368faf6b8574c337b4c5.zip Qt-5b849b15fe89c3645a81368faf6b8574c337b4c5.tar.gz Qt-5b849b15fe89c3645a81368faf6b8574c337b4c5.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/flickr/content/ImageDetails.qml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/demos/declarative/flickr/content/ImageDetails.qml b/demos/declarative/flickr/content/ImageDetails.qml index 6adb397..f53a43b 100644 --- a/demos/declarative/flickr/content/ImageDetails.qml +++ b/demos/declarative/flickr/content/ImageDetails.qml @@ -89,6 +89,7 @@ Flipable { // Center image if it is smaller than the flickable area. x: ImageContainer.width > width*scale ? (ImageContainer.width - width*scale) / 2 : 0 y: ImageContainer.height > height*scale ? (ImageContainer.height - height*scale) / 2 : 0 + smooth: !Flick.moving onStatusChanged : { // Default scale shows the entire image. if (status == 0 && width != 0) { @@ -135,7 +136,19 @@ Flipable { transitions: [ Transition { - NumberAnimation { easing: "easeInOutQuad"; properties: "rotation"; duration: 500 } + SequentialAnimation { + SetPropertyAction { + target: BigImage + property: "smooth" + value: false + } + NumberAnimation { easing: "easeInOutQuad"; properties: "rotation"; duration: 500 } + SetPropertyAction { + target: BigImage + property: "smooth" + value: !Flick.moving + } + } } ] } |