Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2016-12-19 13:55:58 +0300
committerSimon Edwards <s.edwards@ultimaker.com>2016-12-19 14:25:49 +0300
commit5caa1b9b58afcc15b482ac1bf9968335cdbce83b (patch)
treee7b0ae7a9fdcdb0da9f062d7b0ad5c8f9482824c /resources
parent8fadc41ac8a93f5e3855ce803c80398ecb2c297d (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.qml2
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
{