From b14a522f4f308aed41ab49b5529cc10c05168716 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 5 Jun 2017 19:41:57 -0700 Subject: QML UI: move BT handling into core code This shouldn't be part of the UI (qmlmanager), but part of our overall handling of dive computers and BT devices. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index b05c1fc9f..8b9f642ff 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -57,11 +57,11 @@ Kirigami.Page { id: comboVendor Layout.fillWidth: true model: vendorList - currentIndex: manager.getVendorIndex() + currentIndex: downloadThread.data().getDetectedVendorIndex() onCurrentTextChanged: { - comboProduct.model = manager.getDCListFromVendor(comboVendor.currentText) - if (currentIndex == manager.getVendorIndex()) - comboProduct.currentIndex = manager.getProductIndex() + comboProduct.model = downloadThread.data().getProductListFromVendor(comboVendor.currentText) + if (currentIndex == downloadThread.data().getDetectedVendorIndex()) + comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex() } } Kirigami.Label { text: qsTr(" Dive Computer:") } @@ -74,7 +74,7 @@ Kirigami.Page { Kirigami.Label { text: qsTr("Bluetooth download:") } CheckBox { id: isBluetooth - checked: manager.getVendorIndex() != -1 + checked: downloadThread.data().getDetectedVendorIndex() != -1 } } -- cgit v1.2.3-70-g09d2