summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview/qgraphicsview_p.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-07 19:45:41 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-08 21:58:41 +0200
commitc8dea4a83337835323111b3372cf645b51d48edd (patch)
tree354528f43f58c256e497bd8a2d7c6225c5e83468 /src/widgets/graphicsview/qgraphicsview_p.h
parente349f787d595aa343ca86af94159b6730d55b8d5 (diff)
Override virtual method in private class instead of downcasting
Move QGraphicsView specific code into reimplementation of now virtual (and const) canStartScrollingAt. Remove unhelpful comment. Change-Id: Ib4799e48ac4f85748c77c52d29511a0490303676 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsview_p.h')
-rw-r--r--src/widgets/graphicsview/qgraphicsview_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/graphicsview/qgraphicsview_p.h b/src/widgets/graphicsview/qgraphicsview_p.h
index e877e6e887..b58505b057 100644
--- a/src/widgets/graphicsview/qgraphicsview_p.h
+++ b/src/widgets/graphicsview/qgraphicsview_p.h
@@ -117,6 +117,7 @@ public:
QTransform matrix;
qint64 scrollX, scrollY;
void updateScroll();
+ bool canStartScrollingAt(const QPoint &startPos) const override;
qreal leftIndent;
qreal topIndent;