Commit 7b6eeec2 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(app): use a `PasswordField` component

parent 3a785172
......@@ -190,6 +190,7 @@
<file>ui/modules/Common/Form/DroppableTextArea.qml</file>
<file>ui/modules/Common/Form/Fields/HexField.qml</file>
<file>ui/modules/Common/Form/Fields/NumericField.qml</file>
<file>ui/modules/Common/Form/Fields/PasswordField.qml</file>
<file>ui/modules/Common/Form/Fields/PortField.qml</file>
<file>ui/modules/Common/Form/Fields/TextAreaField.qml</file>
<file>ui/modules/Common/Form/Fields/TextField.qml</file>
......
import QtQuick 2.7
import Common 1.0
// =============================================================================
TextField {
echoMode: TextInput.Password
}
......@@ -35,6 +35,7 @@ TextButtonB 1.0 Form/Buttons/TextButtonB.qml
HexField 1.0 Form/Fields/HexField.qml
NumericField 1.0 Form/Fields/NumericField.qml
PasswordField 1.0 Form/Fields/PasswordField.qml
PortField 1.0 Form/Fields/PortField.qml
TextAreaField 1.0 Form/Fields/TextAreaField.qml
TextField 1.0 Form/Fields/TextField.qml
......
......@@ -71,7 +71,7 @@ AssistantAbstractView {
FormGroup {
label: qsTr('passwordLabel')
TextField {
PasswordField {
id: password
onTextChanged: assistantModel.password = text
......@@ -83,7 +83,7 @@ AssistantAbstractView {
FormGroup {
label: qsTr('passwordConfirmationLabel')
TextField {
PasswordField {
id: passwordConfirmation
onTextChanged: error = password.text !== text
......
......@@ -30,7 +30,7 @@ Form {
FormGroup {
label: qsTr('passwordLabel')
TextField {
PasswordField {
id: password
onTextChanged: assistantModel.password = text
......
......@@ -53,7 +53,7 @@ AssistantAbstractView {
FormGroup {
label: qsTr('passwordLabel')
TextField {
PasswordField {
id: password
}
}
......
......@@ -90,7 +90,7 @@ DialogPlus {
FormGroup {
label: qsTr('passwordLabel')
TextField {
PasswordField {
id: password
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment