diff options
author | Ian Chen <ian.1.chen@nokia.com> | 2012-06-22 15:59:26 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-26 02:57:05 +0200 |
commit | a69a4412a0ed7c1b5f1809a5ee8639a0cebd8c84 (patch) | |
tree | 5612758753828bb37d57af18f5e3e751856359df /examples/declarative/common/imports | |
parent | 037c03a8447b4ffe2c249d11c02928561870bc45 (diff) | |
download | qtlocation-a69a4412a0ed7c1b5f1809a5ee8639a0cebd8c84.tar.gz |
Remove tile prefetch code in app layer (slider component)
We should not rely on various qml components to tell
the map to prefetch tiles (by calling "map.cameraStopped()"
which also doesn't tell you much what it actually does).
Prefetching will still work after the patch, but just won't
be triggered by releasing the slider.
Change-Id: I6a78cfc294696cd29c1680faa60e8463e0aca72e
Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'examples/declarative/common/imports')
-rw-r--r-- | examples/declarative/common/imports/QtLocation/examples/components/Slider.qml | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/declarative/common/imports/QtLocation/examples/components/Slider.qml b/examples/declarative/common/imports/QtLocation/examples/components/Slider.qml index 63828c07..aa5db922 100644 --- a/examples/declarative/common/imports/QtLocation/examples/components/Slider.qml +++ b/examples/declarative/common/imports/QtLocation/examples/components/Slider.qml @@ -47,7 +47,6 @@ Item { property real minimum: 0 property real maximum: 1 property int length: width - handle.width - property bool released: false Rectangle { anchors.fill: parent @@ -119,7 +118,6 @@ Item { anchors.fill: parent; drag.target: parent drag.axis: Drag.XAxis; drag.minimumX: 0; drag.maximumX: slider.length onPositionChanged: { slider.value = (slider.maximum - slider.minimum) * handle.x / slider.length + slider.minimum; } - onReleased: slider.released = true } } } |