mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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 int numDives: diveListView.count
|
||||||
property color textColor: subsurfaceTheme.diveListTextColor
|
property color textColor: subsurfaceTheme.diveListTextColor
|
||||||
|
|
||||||
function scrollToTop() {
|
|
||||||
diveListView.positionViewAtBeginning()
|
|
||||||
}
|
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: diveDelegate
|
id: diveDelegate
|
||||||
Kirigami.AbstractListItem {
|
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 {
|
property QtObject addDiveAction: Action {
|
||||||
|
|
Loading…
Add table
Reference in a new issue