mobile-widgets/qml: integrate export page in main.qml

Add export function to GlobalDrawer, allowing the user to
export the divelog.

Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2019-11-17 19:26:23 +01:00 committed by Dirk Hohndel
parent 578abeda80
commit 5307cbc1c7

View file

@ -434,6 +434,17 @@ if you have network connectivity and want to sync your data to cloud storage."),
detailsWindow.endEditMode()
}
},
Kirigami.Action {
icon {
name: ":/icons/ic_cloud_upload.svg"
}
text: qsTr("Export")
onTriggered: {
globalDrawer.close()
pageStack.push(exportWindow)
detailsWindow.endEditMode()
}
},
Kirigami.Action {
icon {
name: ":/icons/ic_help_outline.svg"
@ -794,6 +805,11 @@ if you have network connectivity and want to sync your data to cloud storage."),
visible: false
}
Export {
id: exportWindow
visible: false
}
DiveDetails {
id: detailsWindow
visible: false