forked from qt-creator/qt-creator
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:
@@ -33,13 +33,13 @@ namespace Utils {
|
||||
|
||||
class QTCREATOR_UTILS_EXPORT ParameterAction : public QAction
|
||||
{
|
||||
Q_ENUMS(EnablingMode)
|
||||
Q_PROPERTY(QString emptyText READ emptyText WRITE setEmptyText)
|
||||
Q_PROPERTY(QString parameterText READ parameterText WRITE setParameterText)
|
||||
Q_PROPERTY(EnablingMode enablingMode READ enablingMode WRITE setEnablingMode)
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum EnablingMode { AlwaysEnabled, EnabledWithParameter };
|
||||
Q_ENUM(EnablingMode)
|
||||
|
||||
explicit ParameterAction(const QString &emptyText,
|
||||
const QString ¶meterText,
|
||||
|
||||
Reference in New Issue
Block a user