aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents_p_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-11-21 12:40:15 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2016-12-28 18:27:33 +0000
commit953b5070160a3a1bed7aaf986a1bb1c3b33b0dca (patch)
tree7a2343f0ac1bc7a455d4a831976664040e14ace8 /src/quick/items/qquickevents_p_p.h
parentc4c4e9ddc1f659abd3abb57ba04b8524e2224bfe (diff)
add QQuickEventPoint::isDraggedOverThreshold
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 <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r--src/quick/items/qquickevents_p_p.h1
1 files changed, 1 insertions, 0 deletions
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);