From 4737fed9d4914d0641eded413704572cc2342b55 Mon Sep 17 00:00:00 2001 From: casper Date: Tue, 8 Feb 2022 16:48:10 +0100 Subject: [PATCH] Allow commas as number input --- resources/qml/SpinBox.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/qml/SpinBox.qml b/resources/qml/SpinBox.qml index 4f927d2f25..7f30109380 100644 --- a/resources/qml/SpinBox.qml +++ b/resources/qml/SpinBox.qml @@ -51,7 +51,7 @@ Item valueFromText: function(text) { - return parseFloat(text.substring(prefix.length, text.length - suffix.length)) / base.stepSize; + return parseFloat(text.substring(prefix.length, text.length - suffix.length).replace(",", ".")) / base.stepSize; } textFromValue: function(value)