mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Move validators to top of file.
CURA-9793
This commit is contained in:
parent
f52638ca75
commit
8780a2c4a0
1 changed files with 5 additions and 3 deletions
|
@ -14,6 +14,11 @@ SettingItem
|
|||
property string textBeforeEdit
|
||||
property bool textHasChanged
|
||||
property bool focusGainedByClick: false
|
||||
|
||||
readonly property UM.IntValidator intValidator: UM.IntValidator {}
|
||||
readonly property UM.FloatValidator floatValidator: UM.FloatValidator {}
|
||||
readonly property UM.IntListValidator intListValidator: UM.IntListValidator {}
|
||||
|
||||
onFocusReceived:
|
||||
{
|
||||
textHasChanged = false;
|
||||
|
@ -159,9 +164,6 @@ SettingItem
|
|||
// should be done as little as possible)
|
||||
clip: definition.type == "str" || definition.type == "[int]"
|
||||
|
||||
readonly property UM.IntValidator intValidator: UM.IntValidator {}
|
||||
readonly property UM.FloatValidator floatValidator: UM.FloatValidator {}
|
||||
readonly property UM.IntListValidator intListValidator: UM.IntListValidator {}
|
||||
validator: RegularExpressionValidator
|
||||
{
|
||||
regularExpression:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue