mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
qml: Impose limits on usernames, hostnames
This commit is contained in:
parent
89d1ef40d7
commit
71dffe4d6e
1 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,7 @@ Window {
|
|||
enabled: chkHostname.checked
|
||||
text: "raspberrypi"
|
||||
selectByMouse: true
|
||||
maximumLength: 253
|
||||
validator: RegularExpressionValidator { regularExpression: /[0-9A-Za-z][0-9A-Za-z-]{0,62}/ }
|
||||
}
|
||||
Text {
|
||||
|
@ -139,6 +140,7 @@ Window {
|
|||
Layout.minimumWidth: 200
|
||||
selectByMouse: true
|
||||
property bool indicateError: false
|
||||
maximumLength: 31
|
||||
|
||||
onTextEdited: {
|
||||
indicateError = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue