mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
mobile UI: add context menu to DiveDetails
The undo and redo action actually work already. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
af4bd16f88
commit
28bf078ff7
1 changed files with 14 additions and 0 deletions
|
@ -193,6 +193,20 @@ Kirigami.Page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
contextualActions: [
|
||||||
|
Kirigami.Action {
|
||||||
|
text: qsTr("Undo") + " " + manager.undoText
|
||||||
|
enabled: manager.undoText !== ""
|
||||||
|
onTriggered: manager.undo()
|
||||||
|
},
|
||||||
|
Kirigami.Action {
|
||||||
|
text: qsTr("Redo") + " " + manager.redoText
|
||||||
|
enabled: manager.redoText !== ""
|
||||||
|
onTriggered: manager.redo()
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
onBackRequested: {
|
onBackRequested: {
|
||||||
if (state === "edit") {
|
if (state === "edit") {
|
||||||
endEditMode()
|
endEditMode()
|
||||||
|
|
Loading…
Reference in a new issue