mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
QML UI, consistency: add text attribute for all actions
Something I only see on mobile-on-desktop, so at this point in time not very relevant to the device apps. When hovering on the action button, a toast message shows a hint box. These where empty in some cases. So, just give the actions a text attribute where it was missing. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
684e3eec6b
commit
a8f45406bd
2 changed files with 3 additions and 0 deletions
|
@ -189,6 +189,7 @@ Kirigami.Page {
|
|||
name: state !== "view" ? ":/icons/document-save.svg" : ":/icons/document-edit.svg"
|
||||
color: subsurfaceTheme.primaryColor
|
||||
}
|
||||
text: state !== "view" ? qsTr("Save edits") : qsTr("Edit dive")
|
||||
onTriggered: {
|
||||
manager.appendTextToLog("save/edit button triggered")
|
||||
if (state === "edit" || state === "add") {
|
||||
|
|
|
@ -404,6 +404,7 @@ Kirigami.ScrollablePage {
|
|||
name: ":/icons/downloadDC"
|
||||
color: subsurfaceTheme.primaryColor
|
||||
}
|
||||
text: qsTr("Download dives")
|
||||
onTriggered: {
|
||||
showDownloadPage()
|
||||
}
|
||||
|
@ -413,6 +414,7 @@ Kirigami.ScrollablePage {
|
|||
icon {
|
||||
name: ":/icons/list-add"
|
||||
}
|
||||
text: qsTr("Add dive")
|
||||
onTriggered: {
|
||||
startAddDive()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue