Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 2.08 KB | None | 0 0
  1.             TextField{
  2.                 id: nameTextField
  3.                 anchors.horizontalCenter: parent.horizontalCenter
  4.                 anchors.top: inputSectionLabel.bottom
  5.                 width: confirmRoot.width/3.1
  6.                 height: confirmRoot.height/15
  7.                 placeholderText: qsTr("ImiÄ™");
  8.                 text: viewModel.userName
  9.                 validator: RegExpValidator{
  10.                     id:nameValidatior
  11.                     regExp: /\D+/
  12.  
  13.                 }
  14.             }
  15.             TextField{
  16.                 id: surnameTextField
  17.                 anchors.horizontalCenter: parent.horizontalCenter
  18.                 anchors.top: nameTextField.bottom
  19.                 width: confirmRoot.width/3.1
  20.                 height: confirmRoot.height/15
  21.                 placeholderText: qsTr("Nazwisko");
  22.                 text: viewModel.userSurname
  23.                 validator: RegExpValidator{
  24.                     id:surnameValidator
  25.                     regExp: /\D+/
  26.                 }
  27.             }
  28.             TextField{
  29.                 id: emailTextField
  30.                 anchors.horizontalCenter: parent.horizontalCenter
  31.                 anchors.top: surnameTextField.bottom
  32.                 width: confirmRoot.width/3.1
  33.                 height: confirmRoot.height/15
  34.                 placeholderText: qsTr("Email");
  35.                 text: viewModel.userEmail
  36.                 validator: RegExpValidator{
  37.                     id: emailValidator
  38.                     regExp: /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/
  39.                 }
  40.             }
  41.             TextField{
  42.                 id:phoneNumberTextField
  43.                 anchors.horizontalCenter: parent.horizontalCenter
  44.                 anchors.top: emailTextField.bottom
  45.                 width: confirmRoot.width/3.1
  46.                 height: confirmRoot.height/15
  47.                 placeholderText: qsTr("Numer telefonu");
  48.                 text: viewModel.userPhoneNumber
  49.                 validator: RegExpValidator{
  50.                     id: phoneNumberValidator
  51.                     regExp: /\d+/
  52.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement