diff options
author | Aaron McCarthy <aaron.mccarthy@jollamobile.com> | 2014-02-05 17:26:31 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-06 04:38:25 +0100 |
commit | 0755e958b9c73b163df455d585aac022c48cc62b (patch) | |
tree | c249c14e087857d0910c5ec71d82c74596da93f7 | |
parent | 5748de7e54af9d6f20c89a3f4383a297fb70987e (diff) | |
download | qtlocation-0755e958b9c73b163df455d585aac022c48cc62b.tar.gz |
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 <alexander.blasche@digia.com>
-rw-r--r-- | examples/location/common/imports/QtLocation/examples/components/Slider.qml | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } } |