mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-08 01:46:16 +00:00
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:
parent
7486682f43
commit
f1020a02ce
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ import QtPositioning 5.3
|
||||||
import org.subsurfacedivelog.mobile 1.0
|
import org.subsurfacedivelog.mobile 1.0
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
property int nSelectedDives: 0
|
||||||
|
|
||||||
Plugin {
|
Plugin {
|
||||||
id: mapPlugin
|
id: mapPlugin
|
||||||
name: "esri"
|
name: "esri"
|
||||||
|
@ -15,7 +17,7 @@ Item {
|
||||||
map: map
|
map: map
|
||||||
onSelectedDivesChanged: {
|
onSelectedDivesChanged: {
|
||||||
// 'list' contains a list of dive list indexes
|
// 'list' contains a list of dive list indexes
|
||||||
console.log("onSelectedDivesChanged: " + list.length);
|
nSelectedDives = list.length
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue