Commit 542dbc4b authored by Lorenz Meier's avatar Lorenz Meier

Fix layout of mag cal

parent ffded6de
...@@ -181,41 +181,34 @@ QGCView { ...@@ -181,41 +181,34 @@ QGCView {
anchors.fill: parent anchors.fill: parent
spacing: 10 spacing: 10
Column { QGCLabel {
spacing: 5 width: parent.width
// Compass 0 rotation wrapMode: Text.WordWrap
Component { text: compassRotationText
id: compass0ComponentLabel }
QGCLabel { // Compass 0 rotation
font.pointSize: sideBarH1PointSize Component {
text: "External Compass Orientation" id: compass0ComponentLabel
}
QGCLabel {
font.pointSize: sideBarH1PointSize
text: "External Compass Orientation"
} }
Component {
id: compass0ComponentText
QGCLabel { }
width: parent.width Component {
wrapMode: Text.WordWrap id: compass0ComponentCombo
text: compassRotationText
} FactComboBox {
} id: compass0RotationCombo
Component { width: rotationColumnWidth
id: compass0ComponentCombo model: rotations
fact: Fact { name: "CAL_MAG0_ROT"; onFactMissing: showMissingFactOverlay(name) }
FactComboBox {
id: compass0RotationCombo
width: rotationColumnWidth
model: rotations
fact: Fact { name: "CAL_MAG0_ROT"; onFactMissing: showMissingFactOverlay(name) }
}
} }
Loader { sourceComponent: showCompass0Rot ? compass0ComponentLabel : null }
Loader { sourceComponent: showCompass0Rot ? compass0ComponentText : null }
Loader { sourceComponent: showCompass0Rot ? compass0ComponentCombo : null }
} }
Loader { sourceComponent: showCompass0Rot ? compass0ComponentLabel : null }
Loader { sourceComponent: showCompass0Rot ? compass0ComponentCombo : null }
// Compass 1 rotation // Compass 1 rotation
Component { Component {
id: compass1ComponentLabel id: compass1ComponentLabel
......
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