diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-05-28 03:22:46 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-28 03:22:46 -0700 |
commit | 057f46f854e542276fe1c7c7589cd910cccef532 (patch) | |
tree | 4221e929903b005fa058235461078632af85c4e9 | |
parent | 4ad02634e9e8ee583f3845df701cbd1d06df7ef4 (diff) | |
download | subsurface-057f46f854e542276fe1c7c7589cd910cccef532.tar.gz |
QML UI: stub out saving downloaded dives
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 62299e729..a794c5bc6 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -35,6 +35,7 @@ Kirigami.Page { onFinished : { importModel.repopulate() + acceptButton.enabled = true manager.appendTextToLog("DCDownloadThread finished") } } @@ -118,14 +119,15 @@ Kirigami.Page { RowLayout { Layout.fillWidth: true Button { + id: acceptButton text: qsTr("Accept") + enabled: false onClicked: { - stackView.pop(); - } - } - Button { - text: qsTr("Quit") - onClicked: { + manager.appendTextToLog("Save downloaded dives") + for (var i = 0; i < importModel.rowCount(); i++) { + // figure out which ones are selected + // save the selected dive to the diveTable + } stackView.pop(); } } |