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

Method FillQMenu

Qt/Python/pqPythonEditorActions.cxx:193–205  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

191
192//-----------------------------------------------------------------------------
193void pqPythonEditorActions::FillQMenu(EnumArray<ScriptAction::Type, QMenu*> menus)
194{
195 for (int j = 0; j < static_cast<int>(ScriptAction::Type::END); ++j)
196 {
197 const ScriptAction::Type type = static_cast<ScriptAction::Type>(j);
198 menus[type]->clear();
199
200 for (auto action : this->ScriptActions)
201 {
202 menus[type]->addAction(&action[type]);
203 }
204 }
205}
206
207//-----------------------------------------------------------------------------
208template <>

Callers 2

createMenusMethod · 0.80
updateScriptListMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected