From 5307cbc1c79ee4dfd163c57e427e02c362d5998b Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sun, 17 Nov 2019 19:26:23 +0100 Subject: [PATCH] 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 --- mobile-widgets/qml/main.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 5ff7983c1..44494f92a 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -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