MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / validateWithCustomValidator

Method validateWithCustomValidator

Gui/SpinBox.cpp:755–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755bool
756SpinBox::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
771bool
772SpinBox::validateInternal()

Callers

nothing calls this directly

Calls 1

validateInputMethod · 0.80

Tested by

no test coverage detected