qt5base-lts/examples/widgets
Shawn Rutledge d568797226 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>
2015-02-25 12:14:13 +00:00
..
animation Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
desktop Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
dialogs Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
doc Update copyright headers 2015-02-11 06:49:51 +00:00
draganddrop Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
effects Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
gestures imagegestures example: scaleFactor is relative; get values directly 2015-02-25 12:14:13 +00:00
graphicsview Fixed license headers 2015-02-17 18:46:09 +00:00
itemviews Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
layouts Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
mac Fixed license headers 2015-02-17 18:46:09 +00:00
mainwindows Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
painting Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
richtext Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
scroller Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
statemachine Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
tools Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
tutorials Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
widgets Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
windowcontainer Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
widgets.pro purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00