MCPcopy Create free account
hub / github.com/KDE/kdevelop / addAction

Method addAction

kdevplatform/interfaces/contextmenuextension.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void ContextMenuExtension::addAction( const QString& group, QAction* action )
76{
77 Q_D(ContextMenuExtension);
78
79 auto actionGroupIt = d->extensions.find(group);
80 if (actionGroupIt == d->extensions.end()) {
81 d->extensions.insert( group, QList<QAction*>() << action );
82 } else
83 {
84 actionGroupIt->append(action);
85 }
86}
87
88static
89void populateMenuWithGroup(

Callers 1

populateMenuWithGroupFunction · 0.45

Calls 4

findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected