42 #include "Actionbutton.hh" 47 QPushButton(_parent), action_(_action) {
50 setIcon(action_->icon());
51 setIconSize(QSize(48,48));
52 setToolTip(action_->text());
54 connect(action_, SIGNAL(toggled(
bool)),
this, SLOT(setChecked(
bool)));
55 connect(
this, SIGNAL(toggled(
bool)), action_, SLOT(setChecked(
bool)));
63 void ActionButton::setChecked(
bool _checked) {
65 QPushButton::setChecked(_checked);
69 void ActionButton::changeRegistered() {
70 setChecked(action_->isChecked());