summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@jollamobile.com>2013-12-18 15:15:58 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-11 01:02:51 +0100
commit334b9f3b0c4acb77db7254380c4a96cea6d589a8 (patch)
treeeac101b47ec011783c050189ed8f3dbdef65d0e1 /examples
parent1e58cb04817a3ea6fbed45d5bbb9e6aea99b282d (diff)
downloadqtlocation-334b9f3b0c4acb77db7254380c4a96cea6d589a8.tar.gz
Fix declarative_ui tests.
Coordinates for map items located outside the view port cannot be converted to and from screen coordinates. During tests pan the map so that the items under tests are inside the view port. Tests for panning the map and dragging map items were failing because mapping between coordinates and screen position only works for visible screen positions. The MouseAreas under test did not have preventStealing set, which was causing the map to pan slightly prior to item drag being detected. Stop gesture detection for a touch point when the mouse is grabbed by a child item. Task-number: QTBUG-31797 Change-Id: I42a801d50c194c6fe9629f3b0de606b406ad8b8c Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/location/mapviewer/content/map/Marker.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/location/mapviewer/content/map/Marker.qml b/examples/location/mapviewer/content/map/Marker.qml
index ece34819..0e9f1537 100644
--- a/examples/location/mapviewer/content/map/Marker.qml
+++ b/examples/location/mapviewer/content/map/Marker.qml
@@ -67,6 +67,7 @@ MapQuickItem {
anchors.fill: parent
hoverEnabled : false
drag.target: marker
+ preventStealing: true
onPressed : {
map.pressX = mouse.x