| 14 | }; |
| 15 | private slots: |
| 16 | void actionChanged() { |
| 17 | setEnabled(m_action->isEnabled()); |
| 18 | setChecked(m_action->isChecked()); |
| 19 | setCheckable(m_action->isCheckable()); |
| 20 | setText(m_action->text()); |
| 21 | setIcon(m_action->icon()); |
| 22 | setToolTip(m_action->toolTip()); |
| 23 | setHidden(!m_action->isVisible()); |
| 24 | setFocusPolicy(Qt::NoFocus); |
| 25 | } |
| 26 | private: |
| 27 | QAction * m_action; |
| 28 | }; |