mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile/divedetails: send current-dive changes up to mobile UI
To unify mobile and desktop, let's use the current_dive variable of the core to indicate the current dive. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1f669f9714
commit
8e9e536ffd
1 changed files with 7 additions and 0 deletions
|
@ -334,6 +334,13 @@ Kirigami.Page {
|
||||||
ScrollBar.vertical: ScrollBar { }
|
ScrollBar.vertical: ScrollBar { }
|
||||||
}
|
}
|
||||||
ScrollIndicator.horizontal: ScrollIndicator { }
|
ScrollIndicator.horizontal: ScrollIndicator { }
|
||||||
|
Connections {
|
||||||
|
target: diveModel
|
||||||
|
onCurrentDiveChanged: {
|
||||||
|
currentIndex = index.row
|
||||||
|
diveDetailsListView.positionViewAtIndex(currentIndex, ListView.End)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Flickable {
|
Flickable {
|
||||||
|
|
Loading…
Reference in a new issue