MouseArea: use current value of drag.axis
authorAlberto Mardegan <info@mardy.it>
Thu, 5 Jul 2012 13:56:51 +0000 (17:56 +0400)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Jul 2012 07:03:22 +0000 (09:03 +0200)
commitef4af1217af456dbddc3b5df4004378019a85404
tree24db68526e6e58bfc07762aa2448dcfd1381d5ae
parentc13df9f2147e85e104ac105f975ef87914c908e9
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: I4ffa71c08b97a767aec7f69d19271000a2631327
Reviewed-by: Rick Stockton <rickstockton@reno-computerhelp.com>
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/declarative/graphicsitems/qdeclarativemousearea.cpp
src/declarative/graphicsitems/qdeclarativemousearea_p_p.h
tests/auto/declarative/qdeclarativemousearea/data/changeAxis.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativemousearea/tst_qdeclarativemousearea.cpp