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:
@@ -46,7 +46,6 @@ class PathChooserPrivate;
|
||||
class QTCREATOR_UTILS_EXPORT PathChooser : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS(Kind)
|
||||
Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged DESIGNABLE true)
|
||||
Q_PROPERTY(QString promptDialogTitle READ promptDialogTitle WRITE setPromptDialogTitle DESIGNABLE true)
|
||||
Q_PROPERTY(QString promptDialogFilter READ promptDialogFilter WRITE setPromptDialogFilter DESIGNABLE true)
|
||||
@@ -72,6 +71,7 @@ public:
|
||||
Command, // A command that may or may not exist at the time of selection (e.g. result of a build)
|
||||
Any
|
||||
};
|
||||
Q_ENUM(Kind)
|
||||
|
||||
// Default is <Directory>
|
||||
void setExpectedKind(Kind expected);
|
||||
|
||||
Reference in New Issue
Block a user