-----------------------------------------------------------------------------
| 191 | |
| 192 | //----------------------------------------------------------------------------- |
| 193 | void 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 | //----------------------------------------------------------------------------- |
| 208 | template <> |
no test coverage detected