diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-05 19:41:57 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-11 13:55:41 -0700 |
commit | b14a522f4f308aed41ab49b5529cc10c05168716 (patch) | |
tree | 2b3540e4aeefbe9c21ab9d3af1af2b07a4f503e0 /mobile-widgets/qml/DownloadFromDiveComputer.qml | |
parent | 3b993fbaad0738efe54e797b60e4f49270951323 (diff) | |
download | subsurface-b14a522f4f308aed41ab49b5529cc10c05168716.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 10 |
1 files changed, 5 insertions, 5 deletions
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 } } |