Browse Source

Merge pull request #6524 from DonLakeFlyer/FWLandingAltRel

Fixed Wing Landing Pattern: Relative alt checkbox override
QGC4.4
Don Gagne 7 years ago committed by GitHub
parent
commit
8cfaaec0a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/PlanView/FWLandingPatternEditor.qml
  2. 3
      src/PlanView/SectionHeader.qml

1
src/PlanView/FWLandingPatternEditor.qml

@ -125,6 +125,7 @@ Rectangle { @@ -125,6 +125,7 @@ Rectangle {
anchors.right: parent.right
text: qsTr("Altitudes relative to home")
checked: missionItem.altitudesAreRelative
visible: QGroundControl.corePlugin.options.showMissionAbsoluteAltitude || !missionItem.altitudesAreRelative
onClicked: missionItem.altitudesAreRelative = checked
}
}

3
src/PlanView/SectionHeader.qml

@ -51,9 +51,10 @@ FocusScope { @@ -51,9 +51,10 @@ FocusScope {
QGCColoredImage {
id: image
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
width: label.height / 2
height: width
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
source: "/qmlimages/arrow-down.png"
color: qgcPal.text
visible: !_root.checked

Loading…
Cancel
Save