mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Use Cura.MachineNameValidator
CURA-6435
This commit is contained in:
parent
96e10ee00c
commit
9b603d1f4b
1 changed files with 5 additions and 3 deletions
|
@ -214,9 +214,11 @@ Item
|
||||||
width: (parent.width / 2) | 0
|
width: (parent.width / 2) | 0
|
||||||
placeholderText: catalog.i18nc("@text", "Please give your printer a name")
|
placeholderText: catalog.i18nc("@text", "Please give your printer a name")
|
||||||
maximumLength: 40
|
maximumLength: 40
|
||||||
|
validator: RegExpValidator
|
||||||
// Make sure that the fill is not empty
|
{
|
||||||
validator: RegExpValidator { regExp: /.+/ }
|
regExp: printerNameTextField.machineNameValidator.machineNameRegex
|
||||||
|
}
|
||||||
|
property var machineNameValidator: Cura.MachineNameValidator { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue