Commit 41f781e3 authored by Don Gagne's avatar Don Gagne

parent cfa151aa
......@@ -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)
......
......@@ -319,6 +319,7 @@ SetupPage {
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) {
......
......@@ -304,6 +304,7 @@ RowLayout {
QGCComboBox {
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