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

Method setIconForMacro

Qt/Python/pqPythonMacroSupervisor.cxx:526–537  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

524
525//----------------------------------------------------------------------------
526void pqPythonMacroSupervisor::setIconForMacro(const QString& macroPath, const QString& iconPath)
527{
528 auto iconSettings = pqInternal::IconSettings();
529 if (iconPath.isEmpty())
530 {
531 iconSettings.removeItemFromSettings(macroPath);
532 }
533 else
534 {
535 iconSettings.setItemIconInSettings(macroPath, iconPath);
536 }
537}
538
539//----------------------------------------------------------------------------
540QString pqPythonMacroSupervisor::iconPathFromFileName(const QString& fileName)

Callers

nothing calls this directly

Calls 3

setItemIconInSettingsMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected