From adb927e5bce7cbcbe1742addb4b6fcafdf98a8c2 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 23 Sep 2020 00:39:05 +0200 Subject: Fix documentation of QPointerEvent::points MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As drive-by, fix qdoc warning in related internal documentation. Change-Id: I7716a9b126e38e99dcd11c6af2e91b8ec7bf4346 Reviewed-by: Tor Arne Vestbø --- src/gui/kernel/qevent.cpp | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 5b7bf73dbf..377a13153a 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -446,9 +446,12 @@ void QMutableEventPoint::detach() That is: global position and other valuators will be updated, but the following properties will not be updated: + + \list \li other properties that are not likely to be set after a fresh touchpoint has been received from a device \li properties that should be persistent between events (such as grabbers) + \endlist */ void QMutableEventPoint::updateFrom(const QEventPoint &other) { @@ -575,15 +578,15 @@ void QMutableEventPoint::setTimestamp(const ulong t) */ /*! - \fn int QPointerEvent::pointCount() const + \fn qsizetype QPointerEvent::pointCount() const Returns the number of points in this pointer event. */ /*! - \fn const QEventPoint &QPointerEvent::point(int i) const + \fn QEventPoint &QPointerEvent::point(qsizetype i) - Returns a QEventPoint reference for a point at index \a i. + Returns a QEventPoint reference for the point at index \a i. */ /*! @@ -767,18 +770,6 @@ void QPointerEvent::clearPassiveGrabbers(const QEventPoint &point) mouse events. */ -/*! \fn int QSinglePointEvent::pointCount() const - - Returns the number of points in the event. For a QSinglePointEvent, this - is always 1. -*/ - -/*! \fn const QEventPoint &QSinglePointEvent::point(int i) const - - Returns a reference to a point at index \a i. For a QSinglePointEvent, - \a i must be 0. -*/ - /*! \fn Qt::MouseButton QSinglePointEvent::button() const Returns the button that caused the event. -- cgit v1.2.3