| 753 | } |
| 754 | |
| 755 | bool |
| 756 | SpinBox::validateWithCustomValidator(const QString& txt) |
| 757 | { |
| 758 | if (_imp->customValidator) { |
| 759 | double valueToDisplay; |
| 760 | if ( _imp->customValidator->validateInput(txt, &valueToDisplay) ) { |
| 761 | setValue_internal(_imp->type == eSpinBoxTypeDouble ? valueToDisplay : (int)valueToDisplay, true); |
| 762 | |
| 763 | return true; |
| 764 | } |
| 765 | } |
| 766 | setValue_internal(_imp->valueAfterLastValidation, true); |
| 767 | |
| 768 | return false; |
| 769 | } |
| 770 | |
| 771 | bool |
| 772 | SpinBox::validateInternal() |
nothing calls this directly
no test coverage detected