From ac5096ef9cf4d0a5726f597b6a7c3555ee279091 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Thu, 24 Aug 2023 12:05:08 -0700 Subject: [PATCH] Set numericValuesOnly on calculator entry fields --- src/AutoPilotPlugins/PX4/PowerComponent.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AutoPilotPlugins/PX4/PowerComponent.qml b/src/AutoPilotPlugins/PX4/PowerComponent.qml index 9768b22..659600b 100644 --- a/src/AutoPilotPlugins/PX4/PowerComponent.qml +++ b/src/AutoPilotPlugins/PX4/PowerComponent.qml @@ -439,7 +439,7 @@ SetupPage { columns: 2 QGCLabel { text: qsTr("Measured voltage:") } - QGCTextField { id: measuredVoltage } + QGCTextField { id: measuredVoltage; numericValuesOnly: true } QGCLabel { text: qsTr("Vehicle voltage:") } QGCLabel { text: _batteryFactGroup.voltage.valueString } @@ -497,7 +497,7 @@ SetupPage { columns: 2 QGCLabel { text: qsTr("Measured current:") } - QGCTextField { id: measuredCurrent } + QGCTextField { id: measuredCurrent; numericValuesOnly: true } QGCLabel { text: qsTr("Vehicle current:") } QGCLabel { text: _batteryFactGroup.current.valueString }