MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / insertGroup

Method insertGroup

src/common/actionmanager/actioncontainer.cpp:144–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void ActionContainer::insertGroup(const QString &before, const QString &groupId)
145{
146 auto it = d->groupList.begin();
147 while (it != d->groupList.end()) {
148 if (it->id == before) {
149 d->groupList.insert(it, Group(groupId));
150 break;
151 }
152 ++it;
153 }
154}
155
156void ActionContainer::addAction(Command *action, const QString &groupId)
157{

Callers 1

registerShortcutMethod · 0.80

Calls 4

GroupClass · 0.85
insertMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected