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

Fix layout of mag cal

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