diff options
Diffstat (limited to 'map-widget/qml')
-rw-r--r-- | map-widget/qml/MapWidget.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/map-widget/qml/MapWidget.qml b/map-widget/qml/MapWidget.qml index a8b35083c..9d7fad37c 100644 --- a/map-widget/qml/MapWidget.qml +++ b/map-widget/qml/MapWidget.qml @@ -6,13 +6,16 @@ import org.subsurfacedivelog.mobile 1.0 Item { id: rootItem - property int nSelectedDives: 0 + property alias mapHelper: mapHelper + property alias map: map + + signal selectedDivesChanged(var list) MapWidgetHelper { id: mapHelper map: map editMode: false - onSelectedDivesChanged: nSelectedDives = list.length + onSelectedDivesChanged: rootItem.selectedDivesChanged(list) onEditModeChanged: editMessage.isVisible = editMode === true ? 1 : 0 onCoordinatesChanged: {} Component.onCompleted: { |