mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
remove code that is no longer used
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5dab95b364
commit
3c1d8ec291
1 changed files with 0 additions and 18 deletions
|
@ -18,10 +18,6 @@ Kirigami.ScrollablePage {
|
|||
property int numDives: diveListView.count
|
||||
property color textColor: subsurfaceTheme.diveListTextColor
|
||||
|
||||
function scrollToTop() {
|
||||
diveListView.positionViewAtBeginning()
|
||||
}
|
||||
|
||||
Component {
|
||||
id: diveDelegate
|
||||
Kirigami.AbstractListItem {
|
||||
|
@ -265,20 +261,6 @@ Kirigami.ScrollablePage {
|
|||
}
|
||||
}
|
||||
}
|
||||
Connections {
|
||||
target: header
|
||||
onTitleBarClicked: {
|
||||
// if we can see the dive list and it's not at the top already, go to the top,
|
||||
// otherwise have the title bar handle the click (for bread-crumb navigation)
|
||||
if (stackView.currentItem.objectName === "DiveList" && diveListView.contentY > Kirigami.Units.gridUnit) {
|
||||
diveListView.positionViewAtBeginning()
|
||||
event.accepted = true
|
||||
} else {
|
||||
event.accepted = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
property QtObject addDiveAction: Action {
|
||||
|
|
Loading…
Reference in a new issue