aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpointersinglehandler_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/handlers/qquickpointersinglehandler_p.h')
-rw-r--r--src/quick/handlers/qquickpointersinglehandler_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/handlers/qquickpointersinglehandler_p.h b/src/quick/handlers/qquickpointersinglehandler_p.h
index 9c854c4d0d..466de1a1eb 100644
--- a/src/quick/handlers/qquickpointersinglehandler_p.h
+++ b/src/quick/handlers/qquickpointersinglehandler_p.h
@@ -106,6 +106,8 @@ protected:
QQuickEventPoint *currentPoint(QQuickPointerEvent *ev) { return ev->pointById(m_pointId); }
void onGrabChanged(QQuickPointerHandler *grabber, QQuickEventPoint::GrabState stateChange, QQuickEventPoint *point) override;
+ void setIgnoreAdditionalPoints(bool v = true);
+
private:
void setPressedButtons(Qt::MouseButtons buttons);
void reset();
@@ -122,6 +124,7 @@ private:
qreal m_pressure;
QSizeF m_ellipseDiameters;
Qt::MouseButtons m_acceptedButtons;
+ bool m_ignoreAdditionalPoints : 1;
};
QT_END_NAMESPACE