6 #ifndef SWIFT_GUI_UPPERCASEVALIDATOR_H
7 #define SWIFT_GUI_UPPERCASEVALIDATOR_H
29 CUpperCaseValidator(
bool optionalValue,
int minLength,
int maxLength, QObject *parent =
nullptr);
32 void setRestrictions(
const QStringList &restrictions) { m_restrictions = restrictions; }
38 void setAllowedCharacters09AZ();
41 virtual State validate(QString &input,
int &pos)
const override;
44 virtual void fixup(QString &input)
const override;
47 bool m_optionalValue =
false;
49 int m_maxLength = 32678;
50 QString m_allowedCharacters;
51 QStringList m_restrictions;
void setRestrictions(const QStringList &restrictions)
Set restrictions.
void setAllowedCharacters(const QString &chars)
Allowed characters.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.