From f2729ee15905e356ef14140760637e085b74fb1e Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Tue, 29 May 2018 14:07:32 -0700 Subject: [PATCH 1/2] Allow custom build to hide relative alt checkbox --- src/PlanView/FWLandingPatternEditor.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PlanView/FWLandingPatternEditor.qml b/src/PlanView/FWLandingPatternEditor.qml index 4e53bd8..9ea6458 100644 --- a/src/PlanView/FWLandingPatternEditor.qml +++ b/src/PlanView/FWLandingPatternEditor.qml @@ -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 } } From b5cb07367871e824ed76db5c772e854e40677616 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Tue, 29 May 2018 14:07:42 -0700 Subject: [PATCH 2/2] Fix drop arrow positioning --- src/PlanView/SectionHeader.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PlanView/SectionHeader.qml b/src/PlanView/SectionHeader.qml index 7903a7c..5552701 100644 --- a/src/PlanView/SectionHeader.qml +++ b/src/PlanView/SectionHeader.qml @@ -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