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

parent cfa151aa
...@@ -272,6 +272,7 @@ SetupPage { ...@@ -272,6 +272,7 @@ SetupPage {
anchors.left: gimbalOutLabel.right anchors.left: gimbalOutLabel.right
width: mountAngMinField.width width: mountAngMinField.width
model: gimbalOutModel model: gimbalOutModel
textRole: "text"
currentIndex: gimbalOutIndex currentIndex: gimbalOutIndex
onActivated: setRCFunction(gimbalOutModel.get(index).value, rcFunction) onActivated: setRCFunction(gimbalOutModel.get(index).value, rcFunction)
......
...@@ -319,6 +319,7 @@ SetupPage { ...@@ -319,6 +319,7 @@ SetupPage {
id: outputChan id: outputChan
width: servoPWMMinField.width width: servoPWMMinField.width
model: gimbalOutModel model: gimbalOutModel
textRole: "text"
currentIndex: gimbalOutIndex currentIndex: gimbalOutIndex
onActivated: setRCFunction(gimbalOutModel.get(index).value, rcFunction) onActivated: setRCFunction(gimbalOutModel.get(index).value, rcFunction)
......
...@@ -191,6 +191,7 @@ SetupPage { ...@@ -191,6 +191,7 @@ SetupPage {
anchors.left: lightsStepLabel.right anchors.left: lightsStepLabel.right
width: ScreenTools.defaultFontPixelWidth * 15 width: ScreenTools.defaultFontPixelWidth * 15
model: lightsOutModel model: lightsOutModel
textRole: "text"
currentIndex: lights1OutIndex currentIndex: lights1OutIndex
onActivated: setRCFunction(lightsOutModel.get(index).value, lights1Function) onActivated: setRCFunction(lightsOutModel.get(index).value, lights1Function)
...@@ -211,6 +212,7 @@ SetupPage { ...@@ -211,6 +212,7 @@ SetupPage {
anchors.left: lightsStepLabel.right anchors.left: lightsStepLabel.right
width: lights1Combo.width width: lights1Combo.width
model: lightsOutModel model: lightsOutModel
textRole: "text"
currentIndex: lights2OutIndex currentIndex: lights2OutIndex
onActivated: setRCFunction(lightsOutModel.get(index).value, lights2Function) onActivated: setRCFunction(lightsOutModel.get(index).value, lights2Function)
......
...@@ -398,6 +398,7 @@ SetupPage { ...@@ -398,6 +398,7 @@ SetupPage {
id: sensorCombo id: sensorCombo
Layout.minimumWidth: _fieldWidth Layout.minimumWidth: _fieldWidth
model: sensorModel model: sensorModel
textRole: "text"
onActivated: { onActivated: {
if (index < sensorModel.count - 1) { if (index < sensorModel.count - 1) {
......
...@@ -304,6 +304,7 @@ RowLayout { ...@@ -304,6 +304,7 @@ RowLayout {
QGCComboBox { QGCComboBox {
id: adjustPercentCombo id: adjustPercentCombo
textRole: "text"
model: ListModel { model: ListModel {
id: adjustPercentModel id: adjustPercentModel
ListElement { text: "5"; value: 0.05 } ListElement { text: "5"; value: 0.05 }
......
...@@ -409,6 +409,7 @@ SetupPage { ...@@ -409,6 +409,7 @@ SetupPage {
anchors.right: parent.right anchors.right: parent.right
visible: px4Flow visible: px4Flow
model: px4FlowFirmwareList model: px4FlowFirmwareList
textRole: "text"
currentIndex: _defaultFirmwareIsPX4 ? 0 : 1 currentIndex: _defaultFirmwareIsPX4 ? 0 : 1
} }
......
...@@ -513,6 +513,7 @@ Rectangle { ...@@ -513,6 +513,7 @@ Rectangle {
id: windCombo id: windCombo
width: _valueWidth width: _valueWidth
enabled: !_disableDataPersistence enabled: !_disableDataPersistence
textRole: "text"
model: ListModel { model: ListModel {
id: windItems id: windItems
ListElement { text: "Please Select"; value: -1 } ListElement { text: "Please Select"; value: -1 }
...@@ -550,6 +551,7 @@ Rectangle { ...@@ -550,6 +551,7 @@ Rectangle {
id: ratingCombo id: ratingCombo
width: _valueWidth width: _valueWidth
enabled: !_disableDataPersistence enabled: !_disableDataPersistence
textRole: "text"
model: ListModel { model: ListModel {
id: ratingItems id: ratingItems
ListElement { text: "Please Select"; value: "notset"} 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