Mobile: correct wrong C++ ref in qml

change data() to manager.
correct comboDevice -> comboConnection

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-06-10 18:33:28 +02:00 committed by Dirk Hohndel
parent 470c218b79
commit 13b9c7a822

View file

@ -79,9 +79,9 @@ Kirigami.Page {
elide: Text.ElideRight elide: Text.ElideRight
} }
onCurrentTextChanged: { onCurrentTextChanged: {
comboProduct.model = downloadThread.data().getProductListFromVendor(currentText) comboProduct.model = manager.getProductListFromVendor(currentText)
if (currentIndex == downloadThread.data().getDetectedVendorIndex()) if (currentIndex == manager.getDetectedVendorIndex())
comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex(currentText) comboProduct.currentIndex = manager.getDetectedProductIndex(currentText)
} }
} }
Controls.Label { text: qsTr(" Dive Computer:") } Controls.Label { text: qsTr(" Dive Computer:") }
@ -109,13 +109,13 @@ Kirigami.Page {
elide: Text.ElideRight elide: Text.ElideRight
} }
onCurrentTextChanged: { onCurrentTextChanged: {
var newIdx = downloadThread.data().getMatchingAddress(comboVendor.currentText, currentText) var newIdx = manager.getMatchingAddress(comboVendor.currentText, currentText)
if (newIdx != -1) if (newIdx != -1)
comboConnection.currentIndex = newIdx comboConnection.currentIndex = newIdx
} }
onModelChanged: { onModelChanged: {
currentIndex = downloadThread.data().getDetectedProductIndex(comboVendor.currentText) currentIndex = manager.getDetectedProductIndex(comboVendor.currentText)
} }
} }
Controls.Label { text: qsTr(" Connection:") } Controls.Label { text: qsTr(" Connection:") }
@ -294,9 +294,9 @@ Kirigami.Page {
onVisibleChanged: { onVisibleChanged: {
if (visible) { if (visible) {
comboVendor.currentIndex = downloadThread.data().getDetectedVendorIndex() comboVendor.currentIndex = manager.getDetectedVendorIndex()
comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex(comboVendor.currentText) comboProduct.currentIndex = manager.getDetectedProductIndex(comboVendor.currentText)
comboDevice.currentIndex = downloadThread.data().getMatchingAddress(comboVendor.currentText, comboProduct.currentText) comboConnection.currentIndex = manager.getMatchingAddress(comboVendor.currentText, comboProduct.currentText)
manager.DC_vendor = comboVendor.currentText manager.DC_vendor = comboVendor.currentText
manager.DC_product = comboProduct.currentText manager.DC_product = comboProduct.currentText
manager.DC_devName = comboConnection.currentText manager.DC_devName = comboConnection.currentText