aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents_p_p.h
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-07-15 13:25:05 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2016-07-15 18:34:32 +0000
commit2e8ab387a4aa5aeaf4840cb4255939cb68d9225f (patch)
tree3363620ac1c46b7b8f7543a7a8627b5e3ac618d8 /src/quick/items/qquickevents_p_p.h
parent1b0a6a073e5b79121606312ac3fcfd267ba462ae (diff)
Be consistent about const
The functions should be const, but the returned point not. This allows accepting the points. Change-Id: Iedbe8f3be38d672b33eea352f959b6e2bb6bc4fc Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r--src/quick/items/qquickevents_p_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h
index 5dea26a2a5..ca929bfab5 100644
--- a/src/quick/items/qquickevents_p_p.h
+++ b/src/quick/items/qquickevents_p_p.h
@@ -341,8 +341,8 @@ public: // helpers for C++ only (during event delivery)
bool allPointsAccepted() const;
int pointCount() const { return m_pointCount; }
- const QQuickEventPoint *point(int i) const;
- QQuickEventPoint *pointById(quint64 pointId);
+ QQuickEventPoint *point(int i) const;
+ QQuickEventPoint *pointById(quint64 pointId) const;
const QTouchEvent::TouchPoint *touchPointById(int pointId) const;