diff options
author | jan Iversen <jani@apache.org> | 2018-06-10 18:33:28 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-11 09:43:32 -0700 |
commit | 13b9c7a822bb91896358282fc20cc2f09cb37c03 (patch) | |
tree | ea361c471e4a2d2fa82ab6cf8e4b03d3456c1a6e | |
parent | 470c218b79a582856aff6227a90147e0db52812b (diff) | |
download | subsurface-13b9c7a822bb91896358282fc20cc2f09cb37c03.tar.gz |
Mobile: correct wrong C++ ref in qml
change data() to manager.
correct comboDevice -> comboConnection
Signed-off-by: Jan Iversen <jani@apache.org>
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 35d4c3661..feec3aeda 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -79,9 +79,9 @@ Kirigami.Page { elide: Text.ElideRight } onCurrentTextChanged: { - comboProduct.model = downloadThread.data().getProductListFromVendor(currentText) - if (currentIndex == downloadThread.data().getDetectedVendorIndex()) - comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex(currentText) + comboProduct.model = manager.getProductListFromVendor(currentText) + if (currentIndex == manager.getDetectedVendorIndex()) + comboProduct.currentIndex = manager.getDetectedProductIndex(currentText) } } Controls.Label { text: qsTr(" Dive Computer:") } @@ -109,13 +109,13 @@ Kirigami.Page { elide: Text.ElideRight } onCurrentTextChanged: { - var newIdx = downloadThread.data().getMatchingAddress(comboVendor.currentText, currentText) + var newIdx = manager.getMatchingAddress(comboVendor.currentText, currentText) if (newIdx != -1) comboConnection.currentIndex = newIdx } onModelChanged: { - currentIndex = downloadThread.data().getDetectedProductIndex(comboVendor.currentText) + currentIndex = manager.getDetectedProductIndex(comboVendor.currentText) } } Controls.Label { text: qsTr(" Connection:") } @@ -294,9 +294,9 @@ Kirigami.Page { onVisibleChanged: { if (visible) { - comboVendor.currentIndex = downloadThread.data().getDetectedVendorIndex() - comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex(comboVendor.currentText) - comboDevice.currentIndex = downloadThread.data().getMatchingAddress(comboVendor.currentText, comboProduct.currentText) + comboVendor.currentIndex = manager.getDetectedVendorIndex() + comboProduct.currentIndex = manager.getDetectedProductIndex(comboVendor.currentText) + comboConnection.currentIndex = manager.getMatchingAddress(comboVendor.currentText, comboProduct.currentText) manager.DC_vendor = comboVendor.currentText manager.DC_product = comboProduct.currentText manager.DC_devName = comboConnection.currentText |