mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: add the DownloadThread
For this I had to also make the DCDeviceData accessible, and for that it needed to be a pointer. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
85e92597b5
commit
7858376727
5 changed files with 56 additions and 42 deletions
|
@ -28,6 +28,24 @@ Kirigami.Page {
|
|||
}
|
||||
]
|
||||
*/
|
||||
DCDownloadThread {
|
||||
id: downlodaThread
|
||||
deviceData.vendor : comboVendor.currentText
|
||||
deviceData.product : comboProduct.currentText
|
||||
|
||||
//TODO: make this dynamic?
|
||||
deviceData.devName : "/tmp/ttyS1"
|
||||
|
||||
//TODO: Make this the default on the C++
|
||||
deviceData.bluetoothMode : false
|
||||
deviceData.forceDownload : false
|
||||
deviceData.createNewTrip : false
|
||||
deviceData.deviceId : 0
|
||||
deviceData.diveId : 0
|
||||
deviceData.saveDump : false
|
||||
deviceData.saveLog : false
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.top: parent.top
|
||||
height: parent.height
|
||||
|
@ -59,7 +77,7 @@ Kirigami.Page {
|
|||
text: qsTr("Download")
|
||||
onClicked: {
|
||||
text: qsTr("Retry")
|
||||
stackView.pop();
|
||||
downlodaThread.start()
|
||||
}
|
||||
}
|
||||
Button {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue