summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-30 20:39:25 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-30 20:39:25 -0500
commit6a3e761d8faf5be3bdc8a5feb8f06b69f9bdeaaf (patch)
tree08b6133f3bd55654d7dcafbe67bc235dfe997760 /qt-mobile/qml/main.qml
parent1cf1fa9cacc24853e3c31419e8640dbd9d025bfb (diff)
downloadsubsurface-6a3e761d8faf5be3bdc8a5feb8f06b69f9bdeaaf.tar.gz
QML UI: scroll to top of dive list when tapping title bar
This helps you get to the latest dive when you are stuck at the bottom of a dive list. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/main.qml')
-rw-r--r--qt-mobile/qml/main.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index e2ceab80a..7f5b30789 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -38,6 +38,10 @@ MobileComponents.ApplicationWindow {
detailsWindow.endEditMode()
}
+ function scrollToTop() {
+ diveList.scrollToTop()
+ }
+
globalDrawer: MobileComponents.GlobalDrawer {
title: "Subsurface"
titleIcon: "qrc:/qml/subsurface-mobile-icon.png"