diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-02 00:52:12 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-02 00:52:12 (GMT) |
commit | b88740e48ce82bc118a598358a8d8aff79d2a279 (patch) | |
tree | 4274091038e0b375d377acb3f4d5b515e1ab62cb /demos/declarative/flickr | |
parent | 2790cb59f6877c1027c833578b72e168c912758a (diff) | |
parent | 172df566d0ff512012afbc5039535e532868a1e5 (diff) | |
download | Qt-b88740e48ce82bc118a598358a8d8aff79d2a279.zip Qt-b88740e48ce82bc118a598358a8d8aff79d2a279.tar.gz Qt-b88740e48ce82bc118a598358a8d8aff79d2a279.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml
Conflicts:
demos/declarative/minehunt/main.cpp
demos/declarative/minehunt/minehunt.qml
Diffstat (limited to 'demos/declarative/flickr')
-rw-r--r-- | demos/declarative/flickr/mobile/ImageDetails.qml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/demos/declarative/flickr/mobile/ImageDetails.qml b/demos/declarative/flickr/mobile/ImageDetails.qml index f1b3c7d..2f4df8a 100644 --- a/demos/declarative/flickr/mobile/ImageDetails.qml +++ b/demos/declarative/flickr/mobile/ImageDetails.qml @@ -66,10 +66,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 - smooth: !flickable.moving + anchors.centerIn: parent; smooth: !flickable.moving onStatusChanged : { // Default scale shows the entire image. if (status == 1 && width != 0) { |