summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-11-17 19:26:23 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-03 21:30:39 -0800
commit5307cbc1c79ee4dfd163c57e427e02c362d5998b (patch)
tree22d773bbe781ce56ccef546a0ce917943b74f1ce
parent578abeda80739b48b8eda3aa29e4667a6b5782e4 (diff)
downloadsubsurface-5307cbc1c79ee4dfd163c57e427e02c362d5998b.tar.gz
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>
-rw-r--r--mobile-widgets/qml/main.qml16
1 files changed, 16 insertions, 0 deletions
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
@@ -436,6 +436,17 @@ if you have network connectivity and want to sync your data to cloud storage."),
},
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"
}
text: qsTr("Help")
@@ -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