Add Q_ENUM for QValidator::State

Besides to the usual value for debug output, this is wanted for
some declarative API.

Change-Id: I6c35cad96b6a6f33a7c90e8a254bfe0075e391ee
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Alexander Akulich 2018-11-20 14:22:58 +03:00 committed by Alexandr Akulich
parent 48405219fb
commit 7a7ec94d6c

View File

@ -69,6 +69,7 @@ public:
Intermediate,
Acceptable
};
Q_ENUM(State)
void setLocale(const QLocale &locale);
QLocale locale() const;