diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-20 05:24:18 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | b0cf820bef0699934f61af686598f751115e44f6 (patch) | |
tree | 9a343f0a282a7839ce6960d8ff0d21f2987583e6 /mobile-widgets | |
parent | 09a0f74bd82552b247586daa9326323abec109a0 (diff) | |
download | subsurface-b0cf820bef0699934f61af686598f751115e44f6.tar.gz |
mapwidget.qml: move the new map type toggle on top of the map
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index 96dab8004..345288d25 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -112,28 +112,28 @@ Item { mapHelper.model.selectedUuid = 0 animateMapZoomOut() } + } - Image { - id: toggleImage - x: 10; y: x - source: "qrc:///mapwidget-toggle-" + (map.activeMapType === map.mapType.SATELLITE ? "street" : "satellite") + Image { + id: toggleImage + x: 10; y: x + source: "qrc:///mapwidget-toggle-" + (map.activeMapType === map.mapType.SATELLITE ? "street" : "satellite") - SequentialAnimation { - id: toggleImageAnimation - PropertyAnimation { - target: toggleImage; property: "scale"; from: 1.0; to: 0.8; duration: 120; - } - PropertyAnimation { - target: toggleImage; property: "scale"; from: 0.8; to: 1.0; duration: 80; - } + SequentialAnimation { + id: toggleImageAnimation + PropertyAnimation { + target: toggleImage; property: "scale"; from: 1.0; to: 0.8; duration: 120; } + PropertyAnimation { + target: toggleImage; property: "scale"; from: 0.8; to: 1.0; duration: 80; + } + } - MouseArea { - anchors.fill: parent - onClicked: { - map.activeMapType = map.activeMapType === map.mapType.SATELLITE ? map.mapType.STREET : map.mapType.SATELLITE - toggleImageAnimation.restart() - } + MouseArea { + anchors.fill: parent + onClicked: { + map.activeMapType = map.activeMapType === map.mapType.SATELLITE ? map.mapType.STREET : map.mapType.SATELLITE + toggleImageAnimation.restart() } } } |