aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-20 00:09:53 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commit6299a3c93bb38d555f7db43a3b880c1cc6e89327 (patch)
tree0008ea6eca843904544fa54d9a9701cc20db6313
parent2d101b725264dc62422067e9359ff3982f2e82fc (diff)
downloadsubsurface-6299a3c93bb38d555f7db43a3b880c1cc6e89327.tar.gz
mapwidget.qml: whitespace and ';' cleanup
The rest of the QML code in subsurface doesn't use the ';' to end a line of code or a declaration. Remove all the redundant ';'. Also clean extra blank lines. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r--mobile-widgets/qml/MapWidget.qml31
1 files changed, 14 insertions, 17 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml
index e581ade38..28754e0de 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/mobile-widgets/qml/MapWidget.qml
@@ -5,8 +5,7 @@ import QtPositioning 5.3
import org.subsurfacedivelog.mobile 1.0
Item {
-
- readonly property var esriMapTypeIndexes: { "STREET": 0, "SATELLITE": 1 };
+ readonly property var esriMapTypeIndexes: { "STREET": 0, "SATELLITE": 1 }
Plugin {
id: mapPlugin
@@ -24,18 +23,17 @@ Item {
plugin: mapPlugin
zoomLevel: 1
- readonly property var defaultCenter: QtPositioning.coordinate(0, 0);
- readonly property var defaultZoomIn: 17.0;
- property var newCenter: defaultCenter;
- property var newZoom: 1.0;
+ readonly property var defaultCenter: QtPositioning.coordinate(0, 0)
+ readonly property var defaultZoomIn: 17.0
+ property var newCenter: defaultCenter
+ property var newZoom: 1.0
Component.onCompleted: {
- map.activeMapType = map.supportedMapTypes[esriMapTypeIndexes.SATELLITE];
+ map.activeMapType = map.supportedMapTypes[esriMapTypeIndexes.SATELLITE]
}
MapItemView {
id: mapItemView
-
model: mapHelper.model
delegate: MapQuickItem {
anchorPoint.x: 0
@@ -43,11 +41,11 @@ Item {
coordinate: model.coordinate
z: mapHelper.model.selectedUuid === model.uuid ? mapHelper.model.count - 1 : 0
sourceItem: Image {
- id: mapItemImage;
- source: "qrc:///mapwidget-marker" + (mapHelper.model.selectedUuid === model.uuid ? "-selected" : "");
+ id: mapItemImage
+ source: "qrc:///mapwidget-marker" + (mapHelper.model.selectedUuid === model.uuid ? "-selected" : "")
SequentialAnimation {
- id: mapItemImageAnimation;
+ id: mapItemImageAnimation
PropertyAnimation {
target: mapItemImage; property: "scale"; from: 1.0; to: 0.7; duration: 120;
}
@@ -58,7 +56,7 @@ Item {
onSourceChanged: {
if (mapHelper.model.selectedUuid === model.uuid)
- mapItemImageAnimation.restart();
+ mapItemImageAnimation.restart()
}
}
@@ -73,7 +71,6 @@ Item {
ParallelAnimation {
id: mapAnimation
-
CoordinateAnimation {
target: map
property: "center"
@@ -90,10 +87,10 @@ Item {
}
function centerOnMapLocation(mapLocation) {
- map.newCenter = mapLocation.coordinate;
- map.zoomLevel = 2;
- mapAnimation.restart();
- mapHelper.model.selectedUuid = mapLocation.uuid;
+ map.newCenter = mapLocation.coordinate
+ map.zoomLevel = 2
+ mapAnimation.restart()
+ mapHelper.model.selectedUuid = mapLocation.uuid
}
}
}