mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue