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>
This commit is contained in:
Dirk Hohndel 2019-10-09 13:36:55 -05:00
parent 0d4acbd735
commit e3eaf03d2f

View file

@ -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: {