diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-01-07 04:10:08 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-01-07 04:10:08 (GMT) |
commit | d57baa9be741e0db90e08cc39ba8d488f58c40f5 (patch) | |
tree | c153dc967b36f23a15c2a00cf358f7cfafb34fb2 /examples/declarative | |
parent | 9a186ba66506963b9d88518d5cea0846825ba494 (diff) | |
download | Qt-d57baa9be741e0db90e08cc39ba8d488f58c40f5.zip Qt-d57baa9be741e0db90e08cc39ba8d488f58c40f5.tar.gz Qt-d57baa9be741e0db90e08cc39ba8d488f58c40f5.tar.bz2 |
PinchArea API changes following review.
Task-number: QTBUG-15491
Reviewed-by: Michael Brasser
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/touchinteraction/pincharea/flickresize.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/touchinteraction/pincharea/flickresize.qml b/examples/declarative/touchinteraction/pincharea/flickresize.qml index 8f29d6d..aa426e7 100644 --- a/examples/declarative/touchinteraction/pincharea/flickresize.qml +++ b/examples/declarative/touchinteraction/pincharea/flickresize.qml @@ -56,11 +56,11 @@ Rectangle { height: Math.max(flick.contentHeight, flick.height) onPinchChanged: { // adjust content pos due to drag - flick.contentX += pinch.lastCenter.x - pinch.center.x - flick.contentY += pinch.lastCenter.y - pinch.center.y + flick.contentX += pinch.previousCenter.x - pinch.center.x + flick.contentY += pinch.previousCenter.y - pinch.center.y // resize content - var scale = 1.0 + pinch.scale - pinch.lastScale + var scale = 1.0 + pinch.scale - pinch.previousScale flick.resizeContent(flick.contentWidth * scale, flick.contentHeight * scale, pinch.center) } |