diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-01 04:04:57 +0100 |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-01 04:04:57 +0100 |
commit | 6174f91cc2a8a53c14d3b2f4eccc62f9170699c8 (patch) | |
tree | 08894dba6347764083f4fa9d73baed9486e2a986 /demos | |
parent | 1dca379031381eb7bff91970aec8056f1b7f2efb (diff) | |
parent | 47201b118179d6585d8eac8ab27f756010024a23 (diff) | |
download | qt4-tools-6174f91cc2a8a53c14d3b2f4eccc62f9170699c8.tar.gz |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-qml:
Add mention of highlightRangeMode in snapMode docs.
Fix position of image in detail view.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/flickr/common/ImageDetails.qml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/demos/declarative/flickr/common/ImageDetails.qml b/demos/declarative/flickr/common/ImageDetails.qml index f91b365b4c..9604f107e9 100644 --- a/demos/declarative/flickr/common/ImageDetails.qml +++ b/demos/declarative/flickr/common/ImageDetails.qml @@ -93,9 +93,7 @@ Flipable { Image { id: bigImage; source: container.photoUrl; scale: slider.value - // 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 + anchors.centerIn: parent; smooth: !flick.moving onStatusChanged : { // Default scale shows the entire image. |