summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-23 00:39:05 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-23 06:06:33 +0200
commitadb927e5bce7cbcbe1742addb4b6fcafdf98a8c2 (patch)
treea45013f5b6ce3734cbcdf46b55b95fc3f53801e0 /src
parent6db7aceb43903a0f4441aa37456c5bf4b7b2b6bd (diff)
Fix documentation of QPointerEvent::points
As drive-by, fix qdoc warning in related internal documentation. Change-Id: I7716a9b126e38e99dcd11c6af2e91b8ec7bf4346 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qevent.cpp21
1 files changed, 6 insertions, 15 deletions
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.