mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
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:
parent
0d4acbd735
commit
e3eaf03d2f
1 changed files with 22 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue