summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2015-02-25 09:42:33 +0100
committerShawn Rutledge <shawn.rutledge@digia.com>2015-02-25 12:14:13 +0000
commitd56879722618e8b31749aacb78e33a3f215d43f6 (patch)
tree31f4bb568a074f09e0755d029e7f58e38c08abe8 /src/plugins
parent059a570b8a97b0e38af8c78656e638aa657310e8 (diff)
imagegestures example: scaleFactor is relative; get values directly
QPinchGesture::scaleFactor is relative to the previous zoom factor, so either we need to multiply the total zoom by scaleFactor, or set it based on totalScaleFactor, which is simpler. Pinch-zoom is now working in this example. There's also no reason to use getProperty() when the accessors are directly accessible in QPinchGesture. Task-number: QTBUG-6010 Change-Id: I150dc0b18b4b871a08ec55c0f77463509ab26afe Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions