Fix setting drag properties in mousePress.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 11 May 2012 01:01:33 +0000 (11:01 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 May 2012 03:36:33 +0000 (05:36 +0200)
commit15db94ac656b6c398756b3e0eb982183bb6036bb
tree9ca077e6d7aa94cc6ce20fd9789b19d188e43263
parentd3ec26ea2e22d350a1adc58fbc6903a32c9dea3a
Fix setting drag properties in mousePress.

Cache the dragX and dragY properties after the onPressed
signal has been emitted to allow for deferred creation of the drag
object or changes to the axis property in the handler.

Change-Id: If154e661359c82e957fcf0cbc11ccc1f75bee919
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickmousearea.cpp
tests/auto/quick/qquickmousearea/data/setDragOnPressed.qml [new file with mode: 0644]
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp