summaryrefslogtreecommitdiffstats
path: root/examples/widgets/touch/pinchzoom/graphicsview.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/touch/pinchzoom/graphicsview.h')
-rw-r--r--examples/widgets/touch/pinchzoom/graphicsview.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/touch/pinchzoom/graphicsview.h b/examples/widgets/touch/pinchzoom/graphicsview.h
index d4e2e32d36..c0faeba444 100644
--- a/examples/widgets/touch/pinchzoom/graphicsview.h
+++ b/examples/widgets/touch/pinchzoom/graphicsview.h
@@ -56,10 +56,10 @@ class GraphicsView : public QGraphicsView
Q_OBJECT
public:
- GraphicsView(QGraphicsScene *scene = 0, QWidget *parent = 0);
+ GraphicsView(QGraphicsScene *scene = nullptr, QWidget *parent = nullptr);
bool viewportEvent(QEvent *event) override;
private:
- qreal totalScaleFactor;
+ qreal totalScaleFactor = 1;
};