Unverified Commit 2fc9b3fe authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #7862 from DonLakeFlyer/QGCCombo

Fix textRole usage for QGCComboBox
parents c3f12d1b 41f781e3
......@@ -272,6 +272,7 @@ SetupPage {
anchors.left: gimbalOutLabel.right
width: mountAngMinField.width
model: gimbalOutModel
textRole: "text"
currentIndex: gimbalOutIndex
onActivated: setRCFunction(gimbalOutModel.get(index).value, rcFunction)
......
......@@ -316,10 +316,11 @@ SetupPage {
}
QGCComboBox {
id: outputChan
width: servoPWMMinField.width
model: gimbalOutModel
currentIndex: gimbalOutIndex
id: outputChan
width: servoPWMMinField.width
model: gimbalOutModel
textRole: "text"
currentIndex: gimbalOutIndex
onActivated: setRCFunction(gimbalOutModel.get(index).value, rcFunction)
}
......
......@@ -191,6 +191,7 @@ SetupPage {
anchors.left: lightsStepLabel.right
width: ScreenTools.defaultFontPixelWidth * 15
model: lightsOutModel
textRole: "text"
currentIndex: lights1OutIndex
onActivated: setRCFunction(lightsOutModel.get(index).value, lights1Function)
......@@ -211,6 +212,7 @@ SetupPage {
anchors.left: lightsStepLabel.right
width: lights1Combo.width
model: lightsOutModel
textRole: "text"
currentIndex: lights2OutIndex
onActivated: setRCFunction(lightsOutModel.get(index).value, lights2Function)
......
......@@ -398,6 +398,7 @@ SetupPage {
id: sensorCombo
Layout.minimumWidth: _fieldWidth
model: sensorModel
textRole: "text"
onActivated: {
if (index < sensorModel.count - 1) {
......
......@@ -303,7 +303,8 @@ RowLayout {
QGCLabel { text: qsTr("Increment/Decrement %") }
QGCComboBox {
id: adjustPercentCombo
id: adjustPercentCombo
textRole: "text"
model: ListModel {
id: adjustPercentModel
ListElement { text: "5"; value: 0.05 }
......
......@@ -409,6 +409,7 @@ SetupPage {
anchors.right: parent.right
visible: px4Flow
model: px4FlowFirmwareList
textRole: "text"
currentIndex: _defaultFirmwareIsPX4 ? 0 : 1
}
......
......@@ -513,6 +513,7 @@ Rectangle {
id: windCombo
width: _valueWidth
enabled: !_disableDataPersistence
textRole: "text"
model: ListModel {
id: windItems
ListElement { text: "Please Select"; value: -1 }
......@@ -550,6 +551,7 @@ Rectangle {
id: ratingCombo
width: _valueWidth
enabled: !_disableDataPersistence
textRole: "text"
model: ListModel {
id: ratingItems
ListElement { text: "Please Select"; value: "notset"}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment