| 180 | } |
| 181 | |
| 182 | void Command::setAttribute(CommandAttribute attr) |
| 183 | { |
| 184 | d->attributes |= attr; |
| 185 | switch (attr) { |
| 186 | case Command::CA_Hide: |
| 187 | d->action->setAttribute(CommandAction::Hide); |
| 188 | break; |
| 189 | case Command::CA_UpdateText: |
| 190 | d->action->setAttribute(CommandAction::UpdateText); |
| 191 | break; |
| 192 | case Command::CA_UpdateIcon: |
| 193 | d->action->setAttribute(CommandAction::UpdateIcon); |
| 194 | break; |
| 195 | case Command::CA_NonConfigurable: |
| 196 | break; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | void Command::removeAttribute(CommandAttribute attr) |
| 201 | { |
no outgoing calls
no test coverage detected