Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TextField{
- id: nameTextField
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.top: inputSectionLabel.bottom
- width: confirmRoot.width/3.1
- height: confirmRoot.height/15
- placeholderText: qsTr("Imię");
- text: viewModel.userName
- validator: RegExpValidator{
- id:nameValidatior
- regExp: /\D+/
- }
- }
- TextField{
- id: surnameTextField
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.top: nameTextField.bottom
- width: confirmRoot.width/3.1
- height: confirmRoot.height/15
- placeholderText: qsTr("Nazwisko");
- text: viewModel.userSurname
- validator: RegExpValidator{
- id:surnameValidator
- regExp: /\D+/
- }
- }
- TextField{
- id: emailTextField
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.top: surnameTextField.bottom
- width: confirmRoot.width/3.1
- height: confirmRoot.height/15
- placeholderText: qsTr("Email");
- text: viewModel.userEmail
- validator: RegExpValidator{
- id: emailValidator
- regExp: /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/
- }
- }
- TextField{
- id:phoneNumberTextField
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.top: emailTextField.bottom
- width: confirmRoot.width/3.1
- height: confirmRoot.height/15
- placeholderText: qsTr("Numer telefonu");
- text: viewModel.userPhoneNumber
- validator: RegExpValidator{
- id: phoneNumberValidator
- regExp: /\d+/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement