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

Method setNameForMacro

Qt/Python/pqPythonMacroSupervisor.cxx:483–494  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

481
482//----------------------------------------------------------------------------
483void pqPythonMacroSupervisor::setNameForMacro(const QString& macroPath, const QString& name)
484{
485 auto settings = pqInternal::MacroSettings(pqPythonMacroSettings::MacroItemCategories::Name);
486 if (name.isEmpty())
487 {
488 settings.removeItemFromSettings(macroPath);
489 }
490 else
491 {
492 settings.setItemInSettings(macroPath, name);
493 }
494}
495
496//----------------------------------------------------------------------------
497QString pqPythonMacroSupervisor::macroToolTipFromFileName(const QString& fileName)

Callers

nothing calls this directly

Calls 3

setItemInSettingsMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected