summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveDetails.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/DiveDetails.qml')
-rw-r--r--mobile-widgets/qml/DiveDetails.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml
index b70bb0045..4636e5ee0 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -86,6 +86,14 @@ Kirigami.Page {
manager.addDiveToTrip(currentItem.modelData.id, currentItem.modelData.tripBelow)
}
}
+ property QtObject createTripForDiveAction: Kirigami.Action {
+ text: qsTr("Create trip with dive")
+ icon { name: ":/icons/list-add" }
+ enabled: currentItem && currentItem.modelData && !currentItem.modelData.isTrip && currentItem.modelData.isTopLevel
+ onTriggered: {
+ manager.addTripForDive(currentItem.myData.id)
+ }
+ }
property QtObject undoAction: Kirigami.Action {
text: qsTr("Undo") + " " + manager.undoText
icon { name: ":/icons/undo.svg" }