From d7e34578591260ff972ec6a498a8d4c5125ec5ed Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Sat, 18 Jul 2020 14:35:53 -0700 Subject: [PATCH] VIsual tweaks --- src/PlanView/SimpleItemEditor.qml | 62 +++++++++++++++---------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/src/PlanView/SimpleItemEditor.qml b/src/PlanView/SimpleItemEditor.qml index 663d7ae80..6b4db36d9 100644 --- a/src/PlanView/SimpleItemEditor.qml +++ b/src/PlanView/SimpleItemEditor.qml @@ -23,6 +23,7 @@ Rectangle { property bool _supportsTerrainFrame: _controllerVehicle.supportsTerrainFrame property int _globalAltMode: missionItem.masterController.missionController.globalAltitudeMode property bool _globalAltModeIsMixed: _globalAltMode == QGroundControl.AltitudeModeNone + property real _radius: ScreenTools.defaultFontPixelWidth / 2 property string _altModeRelativeHelpText: qsTr("Altitude relative to launch altitude") property string _altModeAbsoluteHelpText: qsTr("Altitude above mean sea level") @@ -55,6 +56,8 @@ Rectangle { onAltitudeModeChanged: updateAltitudeModeText() } + QGCPalette { id: qgcPal; colorGroupEnabled: enabled } + Column { id: editorColumn anchors.margins: _margin @@ -120,37 +123,6 @@ Rectangle { spacing: _margin visible: !missionItem.wizardMode - GridLayout { - anchors.left: parent.left - anchors.right: parent.right - columns: 2 - - Repeater { - model: missionItem.comboboxFacts - - QGCLabel { - text: object.name - visible: object.name !== "" - Layout.column: 0 - Layout.row: index - } - } - - Repeater { - model: missionItem.comboboxFacts - - FactComboBox { - indexModel: false - model: object.enumStrings - fact: object - font.pointSize: ScreenTools.smallFontPointSize - Layout.column: 1 - Layout.row: index - Layout.fillWidth: true - } - } - } - // This control needs to morph between a simple altitude entry field to a more complex alt mode picker based on the global plan alt mode Rectangle { anchors.left: parent.left @@ -258,6 +230,34 @@ Rectangle { } } + ColumnLayout { + anchors.left: parent.left + anchors.right: parent.right + spacing: _margin + + Repeater { + model: missionItem.comboboxFacts + + ColumnLayout { + Layout.fillWidth: true + spacing: 0 + + QGCLabel { + font.pointSize: ScreenTools.smallFontPointSize + text: object.name + visible: object.name !== "" + } + + FactComboBox { + Layout.fillWidth: true + indexModel: false + model: object.enumStrings + fact: object + } + } + } + } + GridLayout { anchors.left: parent.left anchors.right: parent.right -- 2.22.0