aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickdrag_p.h
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-03-02 12:58:45 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-25 14:44:05 +0200
commit7f626e206614f6030ee0fc994eb9b3602f133d87 (patch)
treea212d0f4eae0535ebba56f9f9d848a4dfdab856e /src/quick/items/qquickdrag_p.h
parent9ce3a474e6eae130aa3d1c28e84f934dc3f01d19 (diff)
Don't deliver drag move events immediately.
Rather than delivering drag move events everytime the position of an item changes queue up an event to process in the event loop. This filters out noisy intermediate positions particularly where the x and y values are set independently and better insulates against feedback. Change-Id: I5d787d63ed01441a9080d0daaee9db1373d5f073 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/quick/items/qquickdrag_p.h')
-rw-r--r--src/quick/items/qquickdrag_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquickdrag_p.h b/src/quick/items/qquickdrag_p.h
index ac19c021e0..720946924f 100644
--- a/src/quick/items/qquickdrag_p.h
+++ b/src/quick/items/qquickdrag_p.h
@@ -182,6 +182,8 @@ public:
Q_INVOKABLE int drop();
+ bool event(QEvent *event);
+
public Q_SLOTS:
void start(QQmlV8Function *);
void cancel();