mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Adjust signature to match data we need
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ea8de175a7
commit
0c410aaf5d
3 changed files with 10 additions and 14 deletions
|
@ -61,7 +61,7 @@ Kirigami.Page {
|
|||
GridLayout {
|
||||
columns: 2
|
||||
Kirigami.Label { text: qsTr(" Vendor name: ") }
|
||||
property var vendoridx: downloadThread.data().getDetectedVendorIndex("")
|
||||
property var vendoridx: downloadThread.data().getDetectedVendorIndex()
|
||||
ComboBox {
|
||||
id: comboVendor
|
||||
Layout.fillWidth: true
|
||||
|
@ -87,14 +87,14 @@ Kirigami.Page {
|
|||
}
|
||||
onCurrentTextChanged: {
|
||||
comboProduct.model = downloadThread.data().getProductListFromVendor(currentText)
|
||||
if (currentIndex == downloadThread.data().getDetectedVendorIndex(currentText))
|
||||
comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex(currentText, comboProduct.currentText)
|
||||
if (currentIndex == downloadThread.data().getDetectedVendorIndex())
|
||||
comboProduct.currentIndex = downloadThread.data().getDetectedProductIndex(currentText)
|
||||
}
|
||||
}
|
||||
Kirigami.Label { text: qsTr(" Dive Computer:") }
|
||||
ComboBox {
|
||||
id: comboProduct
|
||||
property var productidx: downloadThread.data().getDetectedProductIndex(comboVendor.currentText, currentText)
|
||||
property var productidx: downloadThread.data().getDetectedProductIndex(comboVendor.currentText)
|
||||
Layout.fillWidth: true
|
||||
model: null
|
||||
currentIndex: productidx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue