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