diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-24 22:50:18 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | f1020a02ce3c17cfce52e55cb4e043fbfa0d76cb (patch) | |
tree | cba6c062e6f3890789e8409396234ba760cc2918 /mobile-widgets/qml | |
parent | 7486682f43b2c83d02bed52a2a6c3c7ce8d68426 (diff) | |
download | subsurface-f1020a02ce3c17cfce52e55cb4e043fbfa0d76cb.tar.gz |
mapwidget.qml: store the selected dives count in "nSelectedDives"
Different actions might be performed depending on the count of selected
dives - e.g. deep zoom only for a single selected dive.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index 647754223..a8eb7550e 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -5,6 +5,8 @@ import QtPositioning 5.3 import org.subsurfacedivelog.mobile 1.0 Item { + property int nSelectedDives: 0 + Plugin { id: mapPlugin name: "esri" @@ -15,7 +17,7 @@ Item { map: map onSelectedDivesChanged: { // 'list' contains a list of dive list indexes - console.log("onSelectedDivesChanged: " + list.length); + nSelectedDives = list.length } } |