From 7a7ec94d6c7b184a376d966f4b69804bd3dc9d37 Mon Sep 17 00:00:00 2001 From: Alexander Akulich Date: Tue, 20 Nov 2018 14:22:58 +0300 Subject: Add Q_ENUM for QValidator::State MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Besides to the usual value for debug output, this is wanted for some declarative API. Change-Id: I6c35cad96b6a6f33a7c90e8a254bfe0075e391ee Reviewed-by: Tor Arne Vestbø --- src/gui/util/qvalidator.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/util/qvalidator.h b/src/gui/util/qvalidator.h index cc7cbcb559..f0e72e3814 100644 --- a/src/gui/util/qvalidator.h +++ b/src/gui/util/qvalidator.h @@ -69,6 +69,7 @@ public: Intermediate, Acceptable }; + Q_ENUM(State) void setLocale(const QLocale &locale); QLocale locale() const; -- cgit v1.2.3