forked from qt-creator/qt-creator
ActionManager: Fix CommandAttribute enum to actually use a bit per value
Task-Nr: QTCREATORBUG-3517 Reviewed-By: con
This commit is contained in:
@@ -54,10 +54,10 @@ class CORE_EXPORT Command : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
enum CommandAttribute {
|
enum CommandAttribute {
|
||||||
CA_Hide,
|
CA_Hide = 1,
|
||||||
CA_UpdateText,
|
CA_UpdateText = 2,
|
||||||
CA_UpdateIcon,
|
CA_UpdateIcon = 4,
|
||||||
CA_NonConfigureable
|
CA_NonConfigureable = 8
|
||||||
};
|
};
|
||||||
Q_DECLARE_FLAGS(CommandAttributes, CommandAttribute)
|
Q_DECLARE_FLAGS(CommandAttributes, CommandAttribute)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user