mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:13:24 +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
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue