diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-05 15:50:52 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-05 15:53:25 -0700 |
commit | 3c1d8ec2918bbe28a24edd8978aa4b3ffc924ba0 (patch) | |
tree | dccc52072f30d81ebd0524ce78eacf77da838f20 /mobile-widgets | |
parent | 5dab95b3647fd410fdd469365dfbcab7db093919 (diff) | |
download | subsurface-3c1d8ec2918bbe28a24edd8978aa4b3ffc924ba0.tar.gz |
remove code that is no longer used
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 66583a175..e90a4132e 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -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 { |