aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2023-07-07 20:55:27 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2023-07-12 23:44:21 +0200
commitcaecdde22c79b613f82eed81dc7b010caea9f71c (patch)
tree2dd55e2af889cac8b2a4a00fa1a412a3928e7f8d /src/quick/handlers
parent7db33bef41f24c86e844c3982daaa0747cf28b0c (diff)
Add more internal docs in QQuickDeliveryAgent and its Private
Try to explain pointer event delivery better. Change-Id: I015170fbf94f3e7d06d329223730426362f884fe Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Diffstat (limited to 'src/quick/handlers')
-rw-r--r--src/quick/handlers/qquickpointerhandler.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/quick/handlers/qquickpointerhandler.cpp b/src/quick/handlers/qquickpointerhandler.cpp
index 432524ac69..34c5357614 100644
--- a/src/quick/handlers/qquickpointerhandler.cpp
+++ b/src/quick/handlers/qquickpointerhandler.cpp
@@ -879,6 +879,8 @@ QQuickPointerHandlerPrivate::QQuickPointerHandlerPrivate()
Returns \c true if the movement delta \a d in pixels along the \a axis
exceeds QQuickPointerHandler::dragThreshold() \e or QEventPoint::velocity()
exceeds QStyleHints::startDragVelocity().
+
+ \sa QQuickDeliveryAgentPrivate::dragOverThreshold()
*/
template <typename TEventPoint>
bool QQuickPointerHandlerPrivate::dragOverThreshold(qreal d, Qt::Axis axis, const TEventPoint &p) const
@@ -897,6 +899,8 @@ bool QQuickPointerHandlerPrivate::dragOverThreshold(qreal d, Qt::Axis axis, cons
/*!
Returns \c true if the movement \a delta in pixels exceeds
QQuickPointerHandler::dragThreshold().
+
+ \sa QQuickDeliveryAgentPrivate::dragOverThreshold()
*/
bool QQuickPointerHandlerPrivate::dragOverThreshold(QVector2D delta) const
{
@@ -906,9 +910,11 @@ bool QQuickPointerHandlerPrivate::dragOverThreshold(QVector2D delta) const
}
/*!
- Returns \c true if the movement \a delta in pixels (calculated as
- QEventPoint::scenePosition() - QEventPoint::scenePressPosition())
- expressed in \a point exceeds QQuickPointerHandler::dragThreshold().
+ Returns \c true if the movement delta of \a point in pixels
+ (calculated as QEventPoint::scenePosition() - QEventPoint::scenePressPosition())
+ exceeds QQuickPointerHandler::dragThreshold().
+
+ \sa QQuickDeliveryAgentPrivate::dragOverThreshold()
*/
bool QQuickPointerHandlerPrivate::dragOverThreshold(const QEventPoint &point) const
{