MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / checkValidity

Method checkValidity

src/qt/qvalidatedlineedit.cpp:83–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void QValidatedLineEdit::checkValidity()
84{
85 if (text().isEmpty())
86 {
87 setValid(true);
88 }
89 else if (hasAcceptableInput())
90 {
91 setValid(true);
92
93 // Check contents on focus out
94 if (checkValidator)
95 {
96 QString address = text();
97 int pos = 0;
98 if (checkValidator->validate(address, pos) == QValidator::Acceptable)
99 setValid(true);
100 else
101 setValid(false);
102 }
103 }
104 else
105 setValid(false);
106
107 Q_EMIT validationDidChange(this);
108}
109
110void QValidatedLineEdit::setCheckValidator(const QValidator *v)
111{

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected