diff options
author | jan Iversen <jani@libreoffice.org> | 2018-06-09 16:46:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-09 21:19:46 +0200 |
commit | 807571a5887baa71f7271bf0fff2397090ec9489 (patch) | |
tree | 7141bddeb7fcc16ccdc8d2f2d57e6c58e1b0818d /mobile-widgets | |
parent | 682e1b63f5554e23d1fc295032635bfcb88d2c95 (diff) | |
download | subsurface-807571a588.tar.gz |
core: update deviceData default from qml
remove setting default in qml to C++
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index df9faeb4c..35d4c3661 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -23,18 +23,6 @@ Kirigami.Page { DCDownloadThread { id: downloadThread - deviceData.vendor : comboVendor.currentText - deviceData.product : comboProduct.currentText - deviceData.devName : comboConnection.currentText - - //TODO: Make this the default on the C++ - deviceData.bluetoothMode : true - deviceData.forceDownload : false - deviceData.createNewTrip : false - deviceData.deviceId : 0 - deviceData.diveId : 0 - deviceData.saveDump : false - deviceData.saveLog : true onFinished : { importModel.repopulate() @@ -164,10 +152,10 @@ Kirigami.Page { btAddr = /\{?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}/; if (btAddr.test(currentText)) - downloadThread.deviceData.bluetoothMode = true + downloadThread.manager.DC_bluetoothMode = true else - downloadThread.deviceData.bluetoothMode = false - downloadThread.deviceData.devName = comboConnection.currentText + downloadThread.manager.DC_bluetoothMode = false + downloadThread.manager.DC_devName = comboConnection.currentText } } } @@ -198,9 +186,9 @@ Kirigami.Page { onClicked: { text = qsTr("Retry") // strip any BT Name from the address - var devName = downloadThread.deviceData.devName - downloadThread.deviceData.devName = devName.replace(/^(.*) /, "") - manager.appendTextToLog("DCDownloadThread started for " + downloadThread.deviceData.product + " on "+ downloadThread.deviceData.devName) + var devName = downloadThread.manager.devName + downloadThread.manager.devName = devName.replace(/^(.*) /, "") + manager.appendTextToLog("DCDownloadThread started for " + downloadThread.manager.product + " on "+ downloadThread.manager.devName) progressBar.visible = true downloadThread.start() } @@ -309,6 +297,9 @@ Kirigami.Page { comboVendor.currentIndex = downloadThread.data().getDetectedVendorIndex() comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex(comboVendor.currentText) comboDevice.currentIndex = downloadThread.data().getMatchingAddress(comboVendor.currentText, comboProduct.currentText) + manager.DC_vendor = comboVendor.currentText + manager.DC_product = comboProduct.currentText + manager.DC_devName = comboConnection.currentText } } } |