summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-09 13:36:55 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-13 11:32:27 -0700
commite3eaf03d2fcab8dc3cd655ae298e30daa53b9d8a (patch)
tree61ecddbdfdf3e8f75cd4e329342902326a7968f6 /mobile-widgets
parent0d4acbd735f4ae5620ef7e9d4daa381d32630e43 (diff)
downloadsubsurface-e3eaf03d2fcab8dc3cd655ae298e30daa53b9d8a.tar.gz
Mobile: implement our own back entry for GlobalDrawer
This way we'll get a working back icon on Android and also correct font size for the (translated) Back text. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/main.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 80dc329fe..79f2e57b3 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -135,6 +135,7 @@ Kirigami.ApplicationWindow {
}
globalDrawer: Kirigami.GlobalDrawer {
+ id: gDrawer
height: rootItem.height
topContent: Image {
source: "qrc:/qml/icons/dive.jpg"
@@ -242,6 +243,13 @@ Kirigami.ApplicationWindow {
text: qsTr("Dive management")
Kirigami.Action {
icon {
+ name: ":/org/kde/kirigami/icons/go-previous-symbolic.svg"
+ }
+ text: qsTr("Back")
+ onTriggered: gDrawer.scrollViewItem.pop()
+ }
+ Kirigami.Action {
+ icon {
name: ":/icons/ic_add.svg"
}
text: qsTr("Add dive manually")
@@ -323,6 +331,13 @@ if you have network connectivity and want to sync your data to cloud storage."),
Kirigami.Action {
icon {
+ name: ":/org/kde/kirigami/icons/go-previous-symbolic.svg"
+ }
+ text: qsTr("Back")
+ onTriggered: gDrawer.scrollViewItem.pop()
+ }
+ Kirigami.Action {
+ icon {
name:":/icons/ic_gps_fixed.svg"
}
text: qsTr("Show GPS fixes")
@@ -387,6 +402,13 @@ if you have network connectivity and want to sync your data to cloud storage."),
text: qsTr("Developer")
visible: PrefDisplay.show_developer
Kirigami.Action {
+ icon {
+ name: ":/org/kde/kirigami/icons/go-previous-symbolic.svg"
+ }
+ text: qsTr("Back")
+ onTriggered: gDrawer.scrollViewItem.pop()
+ }
+ Kirigami.Action {
text: qsTr("App log")
onTriggered: {
globalDrawer.close()