3 #include <State/Expression.hpp>
12 QValidator::State validate(QString& str,
int&)
const override
18 return QValidator::State::Acceptable;
22 m_currentExp = ::State::parseExpression(str);
23 return m_currentExp ? QValidator::State::Acceptable
24 : QValidator::State::Intermediate;
28 std::optional<::State::Expression> get()
const {
return m_currentExp; }
31 mutable std::optional<::State::Expression> m_currentExp;
Definition: ExpressionValidator.hpp:10