diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-08-28 06:42:02 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-08-28 06:42:02 (GMT) |
commit | 67ca33d53ff805ca33ba775524086a89cb975df9 (patch) | |
tree | 04e02fc9a2ac0c6832c5189022b49a3419d9d762 /demos/declarative/flickr | |
parent | d7400c910765bcbff6927143c348c771310b9d44 (diff) | |
download | Qt-67ca33d53ff805ca33ba775524086a89cb975df9.zip Qt-67ca33d53ff805ca33ba775524086a89cb975df9.tar.gz Qt-67ca33d53ff805ca33ba775524086a89cb975df9.tar.bz2 |
Make a number of Flickable API changes following review.
Diffstat (limited to 'demos/declarative/flickr')
-rw-r--r-- | demos/declarative/flickr/common/ImageDetails.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/declarative/flickr/common/ImageDetails.qml b/demos/declarative/flickr/common/ImageDetails.qml index 8098273..dcd44eb 100644 --- a/demos/declarative/flickr/common/ImageDetails.qml +++ b/demos/declarative/flickr/common/ImageDetails.qml @@ -121,12 +121,12 @@ Flipable { id: Slider; x: 25; y: 374; visible: { BigImage.status == 1 && maximum > minimum } onValueChanged: { if (BigImage.width * value > Flick.width) { - var xoff = (Flick.width/2 + Flick.xPosition) * value / prevScale; - Flick.xPosition = xoff - Flick.width/2; + var xoff = (Flick.width/2 + Flick.viewportX) * value / prevScale; + Flick.viewportX = xoff - Flick.width/2; } if (BigImage.height * value > Flick.height) { - var yoff = (Flick.height/2 + Flick.yPosition) * value / prevScale; - Flick.yPosition = yoff - Flick.height/2; + var yoff = (Flick.height/2 + Flick.viewportY) * value / prevScale; + Flick.viewportY = yoff - Flick.height/2; } prevScale = value; } |