Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
11acf055
Commit
11acf055
authored
Jan 31, 2011
by
con
Browse files
Fix another action manager related wrong use of QFlags.
parent
f6641a2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/utils/proxyaction.cpp
View file @
11acf055
...
...
@@ -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
)
...
...
src/libs/utils/proxyaction.h
View file @
11acf055
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment