{
Q_DECLARE_PUBLIC(QActionGroup)
public:
- QActionGroupPrivate() : exclusive(1), enabled(1), visible(1) { }
+ QActionGroupPrivate() : exclusive(true), enabled(true), visible(true) { }
QList<QAction *> actions;
QPointer<QAction> current;
- uint exclusive : 1;
- uint enabled : 1;
- uint visible : 1;
+ bool exclusive;
+ bool enabled;
+ bool visible;
private:
void _q_actionTriggered(); //private slot
{
Q_D(QActionGroup);
d->enabled = b;
- for(QList<QAction*>::const_iterator it = d->actions.constBegin(); it != d->actions.constEnd(); ++it) {
- (*it)->setEnabled(b);
+ foreach(QAction* it, d->actions) {
+ it->setEnabled(b);
}
}
{
Q_D(QActionGroup);
d->visible = b;
- for(QList<QAction*>::Iterator it = d->actions.begin(); it != d->actions.end(); ++it) {
- (*it)->setVisible(b);
+ foreach(QAction* it, d->actions) {
+ it->setVisible(b);
}
}
// We mean it.
//
-#include "QtCore/qbasictimer.h"
+#include "qbasictimer.h"
#include "qwidget_p.h"
QT_BEGIN_NAMESPACE
QKeySequence shortcut;
int shortcutId;
#endif
- uint checkable :1;
- uint checked :1;
- uint autoRepeat :1;
- uint autoExclusive :1;
- uint down :1;
- uint blockRefresh :1;
- uint pressed : 1;
+ bool checkable;
+ bool checked;
+ bool autoRepeat;
+ bool autoExclusive;
+ bool down;
+ bool blockRefresh;
+ bool pressed;
#ifndef QT_NO_BUTTONGROUP
QButtonGroup* group;