diff options
author | Ghostkeeper <rubend@tutanota.com> | 2016-12-19 13:55:58 +0300 |
---|---|---|
committer | Simon Edwards <s.edwards@ultimaker.com> | 2016-12-19 14:25:49 +0300 |
commit | 5caa1b9b58afcc15b482ac1bf9968335cdbce83b (patch) | |
tree | e7b0ae7a9fdcdb0da9f062d7b0ad5c8f9482824c /resources | |
parent | 8fadc41ac8a93f5e3855ce803c80398ecb2c297d (diff) |
Allow floating point values higher than 9.9999
It would allow only one digit before the radix.
Contributes to issue CURA-3157.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/Settings/SettingTextField.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/Settings/SettingTextField.qml b/resources/qml/Settings/SettingTextField.qml index 427b482cea..da24f0f521 100644 --- a/resources/qml/Settings/SettingTextField.qml +++ b/resources/qml/Settings/SettingTextField.qml @@ -100,7 +100,7 @@ SettingItem maximumLength: 10; - validator: RegExpValidator { regExp: (definition.type == "int") ? /^-?[0-9]{0,10}$/ : /^-?[0-9]?[.,]?[0-9]{0,10}$/ } // definition.type property from parent loader used to disallow fractional number entry + validator: RegExpValidator { regExp: (definition.type == "int") ? /^-?[0-9]{0,10}$/ : /^-?[0-9]{0,9}[.,]?[0-9]{0,10}$/ } // definition.type property from parent loader used to disallow fractional number entry Binding { |