2
0

strictregularexpressionvalidator.h 433 B

123456789101112131415
  1. #ifndef STRICTREGULAREXPRESSIONVALIDATOR_H
  2. #define STRICTREGULAREXPRESSIONVALIDATOR_H
  3. #include <QRegularExpression>
  4. #include <QValidator>
  5. /*!
  6. * \brief The StrictRegularExpressionValidator class only returns Invalid or Acceptable
  7. */
  8. class StrictRegularExpressionValidator : public QRegularExpressionValidator {
  9. public:
  10. QValidator::State validate(QString& txt, int& pos) const;
  11. };
  12. #endif // STRICTREGULAREXPRESSIONVALIDATOR_H