summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/MapWidget.qml
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-24 21:41:00 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commitc078e350e0ca11ad09a9fb57fcf94b95671e6ae4 (patch)
treed200d494a628b896e4b44375d08ccf7f6e1fd7f3 /mobile-widgets/qml/MapWidget.qml
parente79eac333591332d0bfe8ebdeb76a791cf826861 (diff)
downloadsubsurface-c078e350e0ca11ad09a9fb57fcf94b95671e6ae4.tar.gz
mapwidgethelper: emit a selectedDivesChanged() signal
The signal emits a QList<int> filled with dive idexes from the main backend dive table. The MapWidgetHelper QML instance handles that in onSelectedDivesChanged(). This will only be needed for the mobile version, as the desktop version should connect it's own slot in MapWidget.cpp. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/MapWidget.qml')
-rw-r--r--mobile-widgets/qml/MapWidget.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml
index 34731e490..647754223 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/mobile-widgets/qml/MapWidget.qml
@@ -13,6 +13,10 @@ Item {
MapWidgetHelper {
id: mapHelper
map: map
+ onSelectedDivesChanged: {
+ // 'list' contains a list of dive list indexes
+ console.log("onSelectedDivesChanged: " + list.length);
+ }
}
Map {