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>
This commit is contained in:
Tomaz Canabrava 2017-05-26 17:53:25 +02:00 committed by Dirk Hohndel
parent 7858376727
commit 38e24512b7
4 changed files with 53 additions and 7 deletions

View file

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