mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-03 03:54:01 -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 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…
Add table
Add a link
Reference in a new issue