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
|
enabled: chkHostname.checked
|
||||||
text: "raspberrypi"
|
text: "raspberrypi"
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
|
maximumLength: 253
|
||||||
validator: RegularExpressionValidator { regularExpression: /[0-9A-Za-z][0-9A-Za-z-]{0,62}/ }
|
validator: RegularExpressionValidator { regularExpression: /[0-9A-Za-z][0-9A-Za-z-]{0,62}/ }
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
@ -139,6 +140,7 @@ Window {
|
||||||
Layout.minimumWidth: 200
|
Layout.minimumWidth: 200
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
property bool indicateError: false
|
property bool indicateError: false
|
||||||
|
maximumLength: 31
|
||||||
|
|
||||||
onTextEdited: {
|
onTextEdited: {
|
||||||
indicateError = false
|
indicateError = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue