| 71 | } |
| 72 | |
| 73 | void CommandActionPrivate::connectAction() |
| 74 | { |
| 75 | if (action) { |
| 76 | connect(action.data(), &QAction::changed, this, &CommandActionPrivate::actionChanged); |
| 77 | connect(q, &CommandAction::triggered, action.data(), &QAction::triggered); |
| 78 | connect(q, &CommandAction::toggled, action.data(), &QAction::setChecked); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | void CommandActionPrivate::update(QAction *action, bool initialize) |
| 83 | { |