Use Q_ENUM instead of obsoleted Q_ENUMS

It fixes the following warning:
Use Q_ENUM instead of Q_ENUMS [clazy-qenums]

In addition, it amends 8588cf268f
where WidgetStyle got removed.

Change-Id: I4d72dd762a2f18ba8886360b3581b4ef19bf4c5e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2020-12-08 17:32:27 +01:00
parent dce06016ef
commit d42f38cc96
17 changed files with 19 additions and 29 deletions

View File

@@ -176,7 +176,7 @@ public: // must be public to make Q_GADGET introspection work
case_start, // after a 'case' or 'default' token
case_cont // after the colon in a case/default
};
Q_ENUMS(StateType)
Q_ENUM(StateType)
protected:
// extends Token::Kind from qmljsscanner.h