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 <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2017-05-11 12:47:54 +02:00 committed by Dirk Hohndel
parent a55efcf7d8
commit 8056e16589
2 changed files with 13 additions and 0 deletions

View file

@ -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

View file

@ -8,6 +8,7 @@
<file>DiveDetails.qml</file>
<file>DiveDetailsEdit.qml</file>
<file>DiveDetailsView.qml</file>
<file>DownloadFromDiveComputer.qml</file>
<file>GpsList.qml</file>
<file>HintsTextEdit.qml</file>
<file>Log.qml</file>