MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getActionForTreeItem

Method getActionForTreeItem

Gui/PreferencesPanel.cpp:382–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380
381 PluginTreeNodeList::iterator buildPluginGroupHierarchy(const QStringList& grouping);
382 BoundAction* getActionForTreeItem(QTreeWidgetItem* item) const
383 {
384 for (GuiAppShorcuts::const_iterator it = appShortcuts.begin(); it != appShortcuts.end(); ++it) {
385 if (it->item == item) {
386 return NULL;
387 }
388 for (std::list<GuiBoundAction>::const_iterator it2 = it->actions.begin(); it2 != it->actions.end(); ++it2) {
389 if (it2->item == item) {
390 return it2->action;
391 }
392 }
393 }
394
395 return (BoundAction*)NULL;
396 }
397
398 GuiAppShorcuts::iterator buildShortcutsGroupHierarchy(QString grouping);
399

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected