MouseArea: use current value of drag.axis
authorAlberto Mardegan <info@mardy.it>
Thu, 5 Jul 2012 14:10:34 +0000 (18:10 +0400)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Jul 2012 00:30:52 +0000 (02:30 +0200)
commit80dd824864df17bb1293a4438325f2b20306861b
tree0dafc29e090daf32a8d769c172aa00d1326d8957
parentc87df269c0590f5d0b9837d539a5c119e401b750
MouseArea: use current value of drag.axis

If the drag.axis is changed while a drag operation is in progress, put
it into action immediately. This allows, for example, start a dragging
operation out of an item in a scrollable ListView to anywhere on the
screen.
See the linked bug number for an example.

Task-number: QTBUG-26440
Change-Id: Id4219d44d1066dd962319086ac1f2a2a75bb2525
Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickmousearea.cpp
src/quick/items/qquickmousearea_p_p.h
tests/auto/quick/qquickmousearea/data/changeAxis.qml [new file with mode: 0644]
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp