From c078e350e0ca11ad09a9fb57fcf94b95671e6ae4 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Mon, 24 Jul 2017 21:41:00 +0300 Subject: mapwidgethelper: emit a selectedDivesChanged() signal The signal emits a QList 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 --- mobile-widgets/qml/MapWidget.qml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mobile-widgets/qml') 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 { -- cgit v1.2.3-70-g09d2