Don't deliver drag move events immediately.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 2 Mar 2012 02:58:45 +0000 (12:58 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 May 2012 12:44:05 +0000 (14:44 +0200)
commit7f626e206614f6030ee0fc994eb9b3602f133d87
treea212d0f4eae0535ebba56f9f9d848a4dfdab856e
parent9ce3a474e6eae130aa3d1c28e84f934dc3f01d19
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>
src/quick/items/qquickdrag.cpp
src/quick/items/qquickdrag_p.h
tests/auto/quick/qquickdrag/tst_qquickdrag.cpp
tests/auto/quick/qquickdroparea/tst_qquickdroparea.cpp