diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 6617057b42..81496edacd 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -257,10 +257,12 @@ QInputEvent::~QInputEvent() */ /*! - \fn QEventPoint &QPointerEvent::point(qsizetype i) - Returns a QEventPoint reference for the point at index \a i. */ +QEventPoint &QPointerEvent::point(qsizetype i) +{ + return m_points[i]; +} /*! \fn const QList &QPointerEvent::points() const diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index 1c9643fa98..2f8630bad0 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -114,7 +114,7 @@ public: } void setTimestamp(quint64 timestamp) override; qsizetype pointCount() const { return m_points.count(); } - QEventPoint &point(qsizetype i) { return m_points[i]; } + QEventPoint &point(qsizetype i); const QList &points() const { return m_points; } QEventPoint *pointById(int id); bool allPointsGrabbed() const;