From bbb097c322fba6f7b06567cb84a603f0f98772b8 Mon Sep 17 00:00:00 2001 From: dt Date: Tue, 18 Jan 2011 13:25:42 +0100 Subject: [PATCH] ActionManager: Fix CommandAttribute enum to actually use a bit per value Task-Nr: QTCREATORBUG-3517 Reviewed-By: con --- src/plugins/coreplugin/actionmanager/command.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/coreplugin/actionmanager/command.h b/src/plugins/coreplugin/actionmanager/command.h index 8a857a2f4f4..34115709891 100644 --- a/src/plugins/coreplugin/actionmanager/command.h +++ b/src/plugins/coreplugin/actionmanager/command.h @@ -54,10 +54,10 @@ class CORE_EXPORT Command : public QObject Q_OBJECT public: enum CommandAttribute { - CA_Hide, - CA_UpdateText, - CA_UpdateIcon, - CA_NonConfigureable + CA_Hide = 1, + CA_UpdateText = 2, + CA_UpdateIcon = 4, + CA_NonConfigureable = 8 }; Q_DECLARE_FLAGS(CommandAttributes, CommandAttribute)