mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 05:38:12 +00:00
40 lines
746 B
QML
40 lines
746 B
QML
import Common 1.0
|
|
|
|
// =============================================================================
|
|
|
|
Form {
|
|
property alias passwordError: password.error
|
|
property alias usernameError: username.error
|
|
|
|
property bool mainActionEnabled: password.text &&
|
|
username.length &&
|
|
!passwordError.length &&
|
|
!usernameError.length
|
|
|
|
dealWithErrors: true
|
|
orientation: Qt.Vertical
|
|
|
|
FormLine {
|
|
FormGroup {
|
|
label: qsTr('usernameLabel')
|
|
|
|
TextField {
|
|
id: username
|
|
|
|
onTextChanged: assistantModel.username = text
|
|
}
|
|
}
|
|
}
|
|
|
|
FormLine {
|
|
FormGroup {
|
|
label: qsTr('passwordLabel')
|
|
|
|
PasswordField {
|
|
id: password
|
|
|
|
onTextChanged: assistantModel.password = text
|
|
}
|
|
}
|
|
}
|
|
}
|