From 953b5070160a3a1bed7aaf986a1bb1c3b33b0dca Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Mon, 21 Nov 2016 12:40:15 +0100 Subject: add QQuickEventPoint::isDraggedOverThreshold MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It will be reusable functionality. OTOH it considers both axes at once, which is not sufficient for DragHandler to use it. If only Qt::XAxis and Qt::YAxis were ORable flags, we could use a flags parameter (with a default) to control which axes to check. Change-Id: I930b39ad35bc669fcc95229b5a8dac7e99c45d78 Reviewed-by: Jan Arve Sæther --- src/quick/items/qquickevents_p_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/items/qquickevents_p_p.h') diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h index d378388184..5e85aa421e 100644 --- a/src/quick/items/qquickevents_p_p.h +++ b/src/quick/items/qquickevents_p_p.h @@ -292,6 +292,7 @@ public: qreal timeHeld() const { return (m_timestamp - m_pressTimestamp) / 1000.0; } bool isAccepted() const { return m_accept; } void setAccepted(bool accepted = true); + bool isDraggedOverThreshold() const; QObject *grabber() const; void setGrabber(QObject *grabber); -- cgit v1.2.3