From e3eaf03d2fcab8dc3cd655ae298e30daa53b9d8a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Oct 2019 13:36:55 -0500 Subject: 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 --- mobile-widgets/qml/main.qml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'mobile-widgets/qml/main.qml') 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" @@ -240,6 +241,13 @@ Kirigami.ApplicationWindow { name: ":/icons/ic_sync.svg" } 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" @@ -321,6 +329,13 @@ if you have network connectivity and want to sync your data to cloud storage."), text: qsTr("GPS") visible: true + 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" @@ -386,6 +401,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: { -- cgit v1.2.3-70-g09d2