30 Q_PROPERTY(
bool pressed READ isPressed NOTIFY pressedChanged)
31 Q_PROPERTY(
int tapCount READ tapCount NOTIFY tapCountChanged)
33 Q_PROPERTY(
qreal longPressThreshold READ longPressThreshold WRITE setLongPressThreshold NOTIFY longPressThresholdChanged RESET resetLongPressThreshold)
35 Q_PROPERTY(
QQuickTapHandler::ExclusiveSignals exclusiveSignals READ exclusiveSignals WRITE setExclusiveSignals NOTIFY exclusiveSignalsChanged REVISION(6, 5))
62 qreal timeHeld()
const {
return (m_holdTimer.isValid() ? m_holdTimer.elapsed() / 1000.0 : -1.0); }
64 qreal longPressThreshold()
const;
65 void setLongPressThreshold(
qreal longPressThreshold);
66 void resetLongPressThreshold();
69 void setGesturePolicy(GesturePolicy gesturePolicy);
71 QQuickTapHandler::ExclusiveSignals
exclusiveSignals()
const {
return m_exclusiveSignals; }
72 void setExclusiveSignals(QQuickTapHandler::ExclusiveSignals newexclusiveSignals);
96 void connectPreRenderSignal(
bool conn = true);
97 void updateTimeHeld();
101 quint64 m_lastTapTimestamp = 0;
107 Qt::MouseButton m_singleTapReleasedButton;
109 int m_longPressThreshold = -1;
111 ExclusiveSignals m_exclusiveSignals = NotExclusive;
112 bool m_pressed =
false;
113 bool m_longPressed =
false;
115 static
quint64 m_multiTapInterval;
116 static
int m_mouseMultiClickDistanceSquared;
117 static
int m_touchMultiTapDistanceSquared;