qt5base-lts/examples
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
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
dbus Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
embedded examples: migrate to QString::asprintf 2015-02-12 19:40:09 +00:00
gui Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
network Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
opengl Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
qmake Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
qpa Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
qtconcurrent Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
qtestlib Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
sql Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
touch Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
webkit/webkit-guide Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
widgets imagegestures example: scaleFactor is relative; get values directly 2015-02-25 12:14:13 +00:00
xml Merge remote-tracking branch 'origin/5.4' into 5.5 2015-02-24 21:02:08 +01:00
examples.pro Move Qt Core examples under a common subdirectory 2014-10-17 14:57:13 +02:00
README

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.