mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 14:19:00 +08:00
Move validators to top of file.
CURA-9793
This commit is contained in:
parent
f52638ca75
commit
8780a2c4a0
@ -14,6 +14,11 @@ SettingItem
|
|||||||
property string textBeforeEdit
|
property string textBeforeEdit
|
||||||
property bool textHasChanged
|
property bool textHasChanged
|
||||||
property bool focusGainedByClick: false
|
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:
|
onFocusReceived:
|
||||||
{
|
{
|
||||||
textHasChanged = false;
|
textHasChanged = false;
|
||||||
@ -159,9 +164,6 @@ SettingItem
|
|||||||
// should be done as little as possible)
|
// should be done as little as possible)
|
||||||
clip: definition.type == "str" || definition.type == "[int]"
|
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
|
validator: RegularExpressionValidator
|
||||||
{
|
{
|
||||||
regularExpression:
|
regularExpression:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user