MCPcopy Create free account
hub / github.com/Kitware/ParaView / removeMacro

Method removeMacro

Qt/Python/pqPythonMacroSupervisor.cxx:371–394  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

369}
370//----------------------------------------------------------------------------
371void 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//----------------------------------------------------------------------------
397void pqPythonMacroSupervisor::onMacroTriggered()

Callers 1

Calls 4

getMacroMethod · 0.95
removeActionFromWidgetsFunction · 0.85
removeMethod · 0.45

Tested by

no test coverage detected