summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-05-26 17:53:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 11:07:20 -0700
commit38e24512b74dcfb0f473fe0c8003c66e99354409 (patch)
treeda874a08a20503079978a32a9a2fe2ee92c06213 /mobile-widgets/qml/DownloadFromDiveComputer.qml
parent7858376727ee467ae59a18d84d40e3148ea3e38b (diff)
downloadsubsurface-38e24512b74dcfb0f473fe0c8003c66e99354409.tar.gz
QML UI: add the Downloaded Dive Model
Still to do: - select the dives to save - record the downloaded dives but download is already working. :) Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index 4587f2e98..a8f052626 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -44,6 +44,14 @@ Kirigami.Page {
deviceData.diveId : 0
deviceData.saveDump : false
deviceData.saveLog : false
+
+ onFinished : {
+ importModel.repopulate()
+ }
+ }
+
+ DCImportModel {
+ id: importModel
}
ColumnLayout {
@@ -98,6 +106,8 @@ Kirigami.Page {
Layout.fillWidth: true // The tableview should fill
Layout.fillHeight: true // all remaining vertical space
height: parent.height // on this screen
+ model : importModel
+
QQC1.TableViewColumn {
width: parent.width / 2
role: "datetime"