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>
This commit is contained in:
Lubomir I. Ivanov 2017-07-24 22:50:18 +03:00 committed by Dirk Hohndel
parent 7486682f43
commit f1020a02ce

View file

@ -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
}
}