mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile/divelist: remove showDiveIndex QML-function
The currently shown dive is now controlled by the core. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c34b7857fc
commit
d55ea8f875
3 changed files with 0 additions and 9 deletions
|
@ -229,11 +229,6 @@ Kirigami.Page {
|
|||
}
|
||||
}
|
||||
|
||||
function showDiveIndex(id) {
|
||||
currentIndex = swipeModel.getIdxForId(id);
|
||||
diveDetailsListView.positionViewAtIndex(currentIndex, ListView.End);
|
||||
}
|
||||
|
||||
function endEditMode() {
|
||||
// if we were adding a dive, we need to remove it
|
||||
if (state === "add")
|
||||
|
|
|
@ -137,7 +137,6 @@ Item {
|
|||
diveDetailsListView.currentItem.modelData.visibility = detailsEdit.visibility
|
||||
Qt.inputMethod.hide()
|
||||
// now make sure we directly show the saved dive (this may be a new dive, or it may have moved)
|
||||
showDiveIndex(newIdx)
|
||||
clearDetailsEdit()
|
||||
}
|
||||
|
||||
|
|
|
@ -420,9 +420,6 @@ Kirigami.ScrollablePage {
|
|||
if (diveListModel)
|
||||
diveListModel.setActiveTrip(diveListView.currentItem.myData.tripId)
|
||||
|
||||
// update the diveDetails page to also show that dive
|
||||
detailsWindow.showDiveIndex(idx)
|
||||
|
||||
// updating the index of the ListView triggers a non-linear scroll
|
||||
// animation that can be very slow. the fix is to stop this animation
|
||||
// by setting contentY to itself and then using positionViewAtIndex().
|
||||
|
|
Loading…
Reference in a new issue