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

Method addContext

src/common/actionmanager/actionmanager.cpp:243–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void ActionManager::addContext(const QStringList &context)
244{
245 for (const auto &c : context) {
246 if (d->cmdContext.contains(c))
247 continue;
248 d->cmdContext << c;
249 }
250
251 setContext(d->cmdContext);
252}
253
254void ActionManager::removeContext(const QStringList &context)
255{

Callers 1

onFocusChangedMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected