added 'insert' button and 'show password' button for PageSetupWizardCredentials

This commit is contained in:
vladimir.kuznetsov 2023-07-31 14:29:49 +09:00
parent 66f9a82f31
commit aa66133813
10 changed files with 53 additions and 11 deletions

View file

@ -53,6 +53,12 @@ PageType {
textField.validator: RegularExpressionValidator {
regularExpression: InstallController.ipAddressPortRegExp()
}
buttonText: qsTr("Insert")
clickedFunc: function() {
textField.text = ""
textField.paste()
}
}
TextFieldWithHeaderType {
@ -61,14 +67,27 @@ PageType {
Layout.fillWidth: true
headerText: qsTr("Login to connect via SSH")
textFieldPlaceholderText: "root"
buttonText: qsTr("Insert")
clickedFunc: function() {
textField.text = ""
textField.paste()
}
}
TextFieldWithHeaderType {
id: secretData
property bool hidePassword: true
Layout.fillWidth: true
headerText: qsTr("Password / SSH private key")
textField.echoMode: TextInput.Password
textField.echoMode: hidePassword ? TextInput.Password : TextInput.Normal
buttonImageSource: hidePassword ? "qrc:/images/controls/eye.svg" : "qrc:/images/controls/eye-off.svg"
clickedFunc: function() {
hidePassword = !hidePassword
}
}
BasicButtonType {