From 9922e2f26a9baadf8e7ce96d9a19c856def515d3 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sun, 12 May 2024 22:34:34 +0200 Subject: [PATCH] Update GroundPowerWidget.qml --- qml/ui/widgets/GroundPowerWidget.qml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/qml/ui/widgets/GroundPowerWidget.qml b/qml/ui/widgets/GroundPowerWidget.qml index 2636875d6..4b4ae9315 100644 --- a/qml/ui/widgets/GroundPowerWidget.qml +++ b/qml/ui/widgets/GroundPowerWidget.qml @@ -72,7 +72,7 @@ BaseWidget { height: parent.height anchors.rightMargin: 6 anchors.right: parent.right - model: ["Lipo", "LiIon", "LiFe"] + model: ["Lipo", "LiIon", "LiFe", "Custom"] onCurrentIndexChanged: { switch (batteryComboBox.currentIndex) { case 0: @@ -93,9 +93,24 @@ BaseWidget { settings.ground_battery_mid = 35; settings.ground_battery_full = 37; break; + case 2: + settings.ground_battery_type = 3; + customValues.visible=true; + break; } } } + Text { + id:customValues + visible: false + text: qsTr("Battery Type") + color: "white" + height: parent.height + font.bold: true + font.pixelSize: detailPanelFontPixels + anchors.left: parent.left + verticalAlignment: Text.AlignVCenter + } } } }