summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-15 04:02:27 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-15 04:02:27 (GMT)
commitd9a46ef84fcf5b460cb69d9b27c81e6bd6e0a685 (patch)
tree4be56bcf9496666e70d5d2b2a7ef92c1b1a68fe8 /demos
parent7d49812197294dc0cb33e1ad0bd2d56e3557040a (diff)
parent68e47e91af6edca3c714cc3258b65dd88c0ee1e4 (diff)
downloadQt-d9a46ef84fcf5b460cb69d9b27c81e6bd6e0a685.zip
Qt-d9a46ef84fcf5b460cb69d9b27c81e6bd6e0a685.tar.gz
Qt-d9a46ef84fcf5b460cb69d9b27c81e6bd6e0a685.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui-gv
Conflicts: src/declarative/canvas/qsimplecanvas.cpp src/declarative/canvas/qsimplecanvasdebugplugin.cpp src/declarative/canvas/qsimplecanvasdebugplugin_p.h src/declarative/fx/qfxpainteditem.cpp src/declarative/util/qfxview.cpp tools/qmlviewer/qmlviewer.h
Diffstat (limited to 'demos')
-rw-r--r--demos/declarative/flickr/content/ImageDetails.qml15
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
+ }
+ }
}
]
}