diff options
author | Jan Arve Saether <jan-arve.saether@qt.io> | 2016-12-23 15:35:43 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-12-29 15:13:08 +0000 |
commit | 9aa0e84d974d86cf9366714107e9c84dcde15490 (patch) | |
tree | 71247c93da66322cceca7ab1d62c3bedaee77458 /tests/manual/pointer/qml.qrc | |
parent | de3896d2ee2a57aad83eea237ef1c39e3581190b (diff) |
Add a DragHandler::translation property
This allows the application developer to get the translation of the
dragged pointer, and apply it in a custom way.
This should usually be combined with setting target to null.
This will for instance be needed when we want to drag QtLocations map,
where a map is dragged by specifying the geo location of the center of the
map.
The map2.qml example demonstrates this.
Change-Id: I652d9fc92fa9b6dfd3796c7147832f25af0cc5bc
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/manual/pointer/qml.qrc')
-rw-r--r-- | tests/manual/pointer/qml.qrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/manual/pointer/qml.qrc b/tests/manual/pointer/qml.qrc index 3d7de4b728..08488b020b 100644 --- a/tests/manual/pointer/qml.qrc +++ b/tests/manual/pointer/qml.qrc @@ -9,5 +9,6 @@ <file>resources/map.svgz</file> <file>resources/mixer-knob.png</file> <file>resources/redball.png</file> + <file>map2.qml</file> </qresource> </RCC> |