| 114 | } |
| 115 | |
| 116 | bool QValidatedLineEdit::isValid() |
| 117 | { |
| 118 | // use checkValidator in case the QValidatedLineEdit is disabled |
| 119 | if (checkValidator) |
| 120 | { |
| 121 | QString address = text(); |
| 122 | int pos = 0; |
| 123 | if (checkValidator->validate(address, pos) == QValidator::Acceptable) |
| 124 | return true; |
| 125 | } |
| 126 | |
| 127 | return valid; |
| 128 | } |