summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-06-24 03:41:00 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-06-24 03:41:00 (GMT)
commite7af6072770842b5a1f6151304961b86ca08c8f6 (patch)
treec6c7fe1ae1652099f4dfba0b056a292b05323e11 /demos
parent1a2f2b52ec8929a83210aadf0c169a917e6005b1 (diff)
downloadQt-e7af6072770842b5a1f6151304961b86ca08c8f6.zip
Qt-e7af6072770842b5a1f6151304961b86ca08c8f6.tar.gz
Qt-e7af6072770842b5a1f6151304961b86ca08c8f6.tar.bz2
Smooth-scale Big Image while static.
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 ccc91cb..ed60d17 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 {
- NumericAnimation { easing: "easeInOutQuad"; properties: "rotation"; duration: 500 }
+ SequentialAnimation {
+ SetPropertyAction {
+ target: BigImage
+ property: "smooth"
+ value: false
+ }
+ NumericAnimation { easing: "easeInOutQuad"; properties: "rotation"; duration: 500 }
+ SetPropertyAction {
+ target: BigImage
+ property: "smooth"
+ value: !Flick.moving
+ }
+ }
}
]
}