----------------------------------------------------------------------------
| 369 | } |
| 370 | //---------------------------------------------------------------------------- |
| 371 | void pqPythonMacroSupervisor::removeMacro(const QString& fileName) |
| 372 | { |
| 373 | QAction* action = this->getMacro(fileName); |
| 374 | if (!action) |
| 375 | { |
| 376 | return; |
| 377 | } |
| 378 | |
| 379 | removeActionFromWidgets(action, this->Internal->RunWidgetContainers); |
| 380 | this->Internal->RunActionMap.remove(fileName); |
| 381 | delete action; |
| 382 | |
| 383 | action = this->Internal->EditActionMap[fileName]; |
| 384 | removeActionFromWidgets(action, this->Internal->EditWidgetContainers); |
| 385 | this->Internal->EditActionMap.remove(fileName); |
| 386 | delete action; |
| 387 | |
| 388 | action = this->Internal->DeleteActionMap[fileName]; |
| 389 | removeActionFromWidgets(action, this->Internal->DeleteWidgetContainers); |
| 390 | this->Internal->DeleteActionMap.remove(fileName); |
| 391 | delete action; |
| 392 | |
| 393 | pqInternal::IconSettings().removeItemFromSettings(fileName); |
| 394 | } |
| 395 | |
| 396 | //---------------------------------------------------------------------------- |
| 397 | void pqPythonMacroSupervisor::onMacroTriggered() |
no test coverage detected