From 8056e16589d31d4b6392569a842c7ee37e1ce965 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 11 May 2017 12:47:54 +0200 Subject: QML UI: initial code for Download from Dive Computer Add a new action on the drawer to display the Download from Dive Computer options. Nothing works yet. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 12 ++++++++++++ mobile-widgets/qml/mobile-resources.qrc | 1 + 2 files changed, 13 insertions(+) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index d04f2cba3..c4a6a99d6 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -153,6 +153,13 @@ Kirigami.ApplicationWindow { startAddDive() } } + Kirigami.Action { + text: qsTr("Download from DC") + enabled: true + onTriggered: { + stackView.push(downloadFromDc) + } + } Kirigami.Action { text: qsTr("Manual sync with cloud") enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD @@ -353,6 +360,11 @@ Kirigami.ApplicationWindow { visible: false } + DownloadFromDiveComputer { + id: downloadFromDc + visible: false + } + ThemeTest { id: themetest visible: false diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index 4195ab3ef..f91d3bd45 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -8,6 +8,7 @@ DiveDetails.qml DiveDetailsEdit.qml DiveDetailsView.qml + DownloadFromDiveComputer.qml GpsList.qml HintsTextEdit.qml Log.qml -- cgit v1.2.3-70-g09d2