| 136 | } |
| 137 | |
| 138 | void CommandAction::setAction(QAction *action) |
| 139 | { |
| 140 | if (d->action == action) |
| 141 | return; |
| 142 | |
| 143 | d->disconnectAction(); |
| 144 | d->action = action; |
| 145 | d->connectAction(); |
| 146 | d->updateState(); |
| 147 | emit currentActionChanged(action); |
| 148 | } |
| 149 | |
| 150 | QAction *CommandAction::action() const |
| 151 | { |
no test coverage detected