27 #ifndef QTACTIONGROUP_QO_H_
28 #define QTACTIONGROUP_QO_H_
30 #include <QAbstractButton>
56 virtual void synchronize(QAction* action, QAbstractButton* button);
57 virtual void synchronize(QAction* action, QAction* otherAction);
63 virtual void unsynchronize(QAction* action);
64 virtual void unsynchronize(QAbstractButton* button);
70 virtual void unsynchronize(QAction* action, QAbstractButton* button);
71 virtual void unsynchronize(QAction* action, QAction* otherAction);
84 virtual void actionTriggered_(QAction* action,
bool checked);
88 virtual void synchronizedTriggered_(QAction* action,
89 QAbstractButton* button,
bool checked);
94 virtual void actionToggled(
bool checked);
98 virtual void actionTriggered(
bool checked);
102 virtual void synchronizedToggled(
bool checked);
106 virtual void synchronizedTriggered(
bool checked);
127 QList<QAction*> actions()
const;
131 QAction* checkedAction()
const;
134 QAction* addAction(QAction* action);
137 void removeAction(QAction* action);
140 bool isEnabled()
const;
145 void synchronize(QAction* action, QAbstractButton* button);
146 void synchronize(QAction* action, QAction* otherAction);
151 void setEnabled(
bool enabled);
158 void hovered(QAction* action);
161 void triggered(QAction* action);
179 void action_(QAction* action,
bool checked);
183 void actionHovered();
186 void actionTriggered(
bool checked);
189 void actionToggled(
bool checked);
void setDisabled(bool disabled)
Sets all actions to disabled.
QMultiMap< QAction *, QAbstractButton * > itsSynchedButtons_
Synchronized actions maps.
bool isEnabled_
Enabled flag.
QAction * itsCheckedAction_
Currently checked action, or NULL if none are checked.
This class meant to be used almost identically to an exclusive QActionGroup.
QList< QAction * > itsActions_
Actions in group.
QMultiMap< QAction *, QAction * > itsSynchedActions_
This class is used to synchronize the checked state of actions with checkable buttons or other action...