Fix validator for floats in Machine Settings dialog

The DoubleValidator depends on the system locale, requiring users with certain locales to enter floats with a comma instead of a dot (though confusingly floats are always represented with a decimal a dot). Instead of configuring the DoubleValidator with a locale that only accepts decimal dots, this commit uses a RegExpValidator, like other numeric fields in Cura does.
This commit is contained in:
fieldOfView 2020-12-07 16:04:21 +01:00
parent 19d432e50f
commit 0313b29dcf
2 changed files with 18 additions and 5 deletions

View file

@ -137,6 +137,7 @@ Item
labelWidth: base.labelWidth
controlWidth: base.controlWidth
unitText: ""
decimals: 0
forceUpdateOnChangeFunction: forceUpdateFunction
}
}