Commit 11acf055 authored by con's avatar con
Browse files

Fix another action manager related wrong use of QFlags.

parent f6641a2f
......@@ -93,11 +93,13 @@ QAction *ProxyAction::action() const
void ProxyAction::setAttribute(ProxyAction::Attribute attribute)
{
m_attributes |= attribute;
updateState();
}
void ProxyAction::removeAttribute(ProxyAction::Attribute attribute)
{
m_attributes &= ~attribute;
updateState();
}
bool ProxyAction::hasAttribute(ProxyAction::Attribute attribute)
......
......@@ -46,9 +46,9 @@ class QTCREATOR_UTILS_EXPORT ProxyAction : public QAction
Q_OBJECT
public:
enum Attribute {
Hide,
UpdateText,
UpdateIcon
Hide = 0x01,
UpdateText = 0x02,
UpdateIcon = 0x04
};
Q_DECLARE_FLAGS(Attributes, Attribute)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment