mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 02:53:15 +08:00
Use Cura.MachineNameValidator
CURA-6435
This commit is contained in:
parent
96e10ee00c
commit
9b603d1f4b
@ -214,9 +214,11 @@ Item
|
||||
width: (parent.width / 2) | 0
|
||||
placeholderText: catalog.i18nc("@text", "Please give your printer a name")
|
||||
maximumLength: 40
|
||||
|
||||
// Make sure that the fill is not empty
|
||||
validator: RegExpValidator { regExp: /.+/ }
|
||||
validator: RegExpValidator
|
||||
{
|
||||
regExp: printerNameTextField.machineNameValidator.machineNameRegex
|
||||
}
|
||||
property var machineNameValidator: Cura.MachineNameValidator { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user