| 62 | } |
| 63 | |
| 64 | void CommandActionPrivate::disconnectAction() |
| 65 | { |
| 66 | if (action) { |
| 67 | disconnect(action.data(), &QAction::changed, this, &CommandActionPrivate::actionChanged); |
| 68 | disconnect(q, &CommandAction::triggered, action.data(), &QAction::triggered); |
| 69 | disconnect(q, &CommandAction::toggled, action.data(), &QAction::setChecked); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | void CommandActionPrivate::connectAction() |
| 74 | { |