Fix another action manager related wrong use of QFlags.

This commit is contained in:
con
2011-01-31 15:16:52 +01:00
parent f6641a2f23
commit 11acf05509
2 changed files with 5 additions and 3 deletions

View File

@@ -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)