summaryrefslogtreecommitdiffstats
path: root/examples/multitouch/pinchzoom/graphicsview.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-11 10:02:09 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-11 11:30:51 (GMT)
commit791c4035c28257e5a8426e6519866546faaf5286 (patch)
tree7c434b8079c0db1024baa96f4caffdb1dfc7fbf1 /examples/multitouch/pinchzoom/graphicsview.h
parent64946cdc9a5e934132f5c21cbd85e4c21bb5e161 (diff)
downloadQt-791c4035c28257e5a8426e6519866546faaf5286.zip
Qt-791c4035c28257e5a8426e6519866546faaf5286.tar.gz
Qt-791c4035c28257e5a8426e6519866546faaf5286.tar.bz2
Pinchzoom example zooms more smooth
Remember the scale factor so it won't reset each time a new touch sequence starts. Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'examples/multitouch/pinchzoom/graphicsview.h')
-rw-r--r--examples/multitouch/pinchzoom/graphicsview.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/multitouch/pinchzoom/graphicsview.h b/examples/multitouch/pinchzoom/graphicsview.h
index c5195cd..81a115d 100644
--- a/examples/multitouch/pinchzoom/graphicsview.h
+++ b/examples/multitouch/pinchzoom/graphicsview.h
@@ -50,4 +50,7 @@ public:
GraphicsView(QGraphicsScene *scene = 0, QWidget *parent = 0);
bool viewportEvent(QEvent *event);
+
+private:
+ qreal totalScaleFactor;
};