mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
470c218b79
commit
13b9c7a822
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue