diff options
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r-- | qt-mobile/qml/DiveDetails.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml index 28646fd89..f60d39acb 100644 --- a/qt-mobile/qml/DiveDetails.qml +++ b/qt-mobile/qml/DiveDetails.qml @@ -43,6 +43,26 @@ MobileComponents.Page { } ] + contextualActions: [ + Action { + text: "Save Changes" + enabled: diveDetailsWindow.state == "edit" + iconName: "document-save" + onTriggered: { + manager.saveChanges(); + } + }, + Action { + text: checked ? "View" : "Edit" + checkable: true + iconName: checked ? "view-readermode" : "document-edit" + onTriggered: { + diveDetailsWindow.state = checked ? "edit" : "view" + } + } + + ] + ScrollView { anchors.fill: parent Flickable { |