feat(app): use a PasswordField component

This commit is contained in:
Ronan Abhamon 2017-05-03 16:06:42 +02:00
parent 3a7851728a
commit 7b6eeec22e
7 changed files with 16 additions and 5 deletions

View file

@ -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>

View file

@ -0,0 +1,9 @@
import QtQuick 2.7
import Common 1.0
// =============================================================================
TextField {
echoMode: TextInput.Password
}

View file

@ -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

View file

@ -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

View file

@ -30,7 +30,7 @@ Form {
FormGroup {
label: qsTr('passwordLabel')
TextField {
PasswordField {
id: password
onTextChanged: assistantModel.password = text

View file

@ -53,7 +53,7 @@ AssistantAbstractView {
FormGroup {
label: qsTr('passwordLabel')
TextField {
PasswordField {
id: password
}
}

View file

@ -90,7 +90,7 @@ DialogPlus {
FormGroup {
label: qsTr('passwordLabel')
TextField {
PasswordField {
id: password
}
}