mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
Settings-GUI: Max decimal places to 4 (from 3).
This commit is contained in:
parent
8426942395
commit
020bedcfee
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ SettingItem
|
||||||
maximumLength: (definition.type == "str" || definition.type == "[int]") ? -1 : 10
|
maximumLength: (definition.type == "str" || definition.type == "[int]") ? -1 : 10
|
||||||
clip: true; //Hide any text that exceeds the width of the text box.
|
clip: true; //Hide any text that exceeds the width of the text box.
|
||||||
|
|
||||||
validator: RegExpValidator { regExp: (definition.type == "[int]") ? /^\[?(\s*-?[0-9]{0,9}\s*,)*(\s*-?[0-9]{0,9})\s*\]?$/ : (definition.type == "int") ? /^-?[0-9]{0,10}$/ : (definition.type == "float") ? /^-?[0-9]{0,9}[.,]?[0-9]{0,3}$/ : /^.*$/ } // definition.type property from parent loader used to disallow fractional number entry
|
validator: RegExpValidator { regExp: (definition.type == "[int]") ? /^\[?(\s*-?[0-9]{0,9}\s*,)*(\s*-?[0-9]{0,9})\s*\]?$/ : (definition.type == "int") ? /^-?[0-9]{0,10}$/ : (definition.type == "float") ? /^-?[0-9]{0,9}[.,]?[0-9]{0,4}$/ : /^.*$/ } // definition.type property from parent loader used to disallow fractional number entry
|
||||||
|
|
||||||
Binding
|
Binding
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue