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

Method insertLocation

src/common/actionmanager/actioncontainer.cpp:81–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81QAction *ActionContainerPrivate::insertLocation(QList<Group>::const_iterator group) const
82{
83 if (group == groupList.constEnd())
84 return nullptr;
85
86 ++group;
87 while (group != groupList.constEnd()) {
88 if (!group->items.isEmpty()) {
89 QObject *item = group->items.first();
90 QAction *action = q->actionForItem(item);
91 if (action)
92 return action;
93 }
94 ++group;
95 }
96
97 return nullptr;
98}
99
100ActionContainer::ActionContainer(const QString &id, ActionManagerPrivate *actMngPrivate)
101 : d(new ActionContainerPrivate(this, id, actMngPrivate))

Callers 2

addActionMethod · 0.80
addMenuMethod · 0.80

Calls 2

actionForItemMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected