----------------------------------------------------------------------------
| 481 | |
| 482 | //---------------------------------------------------------------------------- |
| 483 | void 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 | //---------------------------------------------------------------------------- |
| 497 | QString pqPythonMacroSupervisor::macroToolTipFromFileName(const QString& fileName) |
nothing calls this directly
no test coverage detected