From 0755e958b9c73b163df455d585aac022c48cc62b Mon Sep 17 00:00:00 2001 From: Aaron McCarthy Date: Wed, 5 Feb 2014 17:26:31 +1000 Subject: Prevent the map stealing mouse events from the zoom slider. Fixes using the slider to zoom the map. Task-number: QTBUG-34237 Change-Id: I78b005030c3d869e63b9391e41d05ff28caa3cf5 Reviewed-by: Alex Blasche --- .../location/common/imports/QtLocation/examples/components/Slider.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/location/common/imports/QtLocation/examples/components/Slider.qml b/examples/location/common/imports/QtLocation/examples/components/Slider.qml index 1a337425..93fc8989 100644 --- a/examples/location/common/imports/QtLocation/examples/components/Slider.qml +++ b/examples/location/common/imports/QtLocation/examples/components/Slider.qml @@ -117,6 +117,7 @@ Item { hoverEnabled: false anchors.fill: parent; drag.target: parent drag.axis: Drag.XAxis; drag.minimumX: 0; drag.maximumX: slider.length + preventStealing: true onPositionChanged: { slider.value = (slider.maximum - slider.minimum) * handle.x / slider.length + slider.minimum; } } } -- cgit v1.2.3