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

Method enableData

plugins/quickopen/projectitemquickopen.cpp:352–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352void ProjectItemDataProvider::enableData(const QStringList& items, const QStringList& scopes)
353{
354 //FIXME: property support different scopes
355 if (scopes.contains(i18nc("@item quick open scope", "Project"))) {
356 m_itemTypes = NoItems;
357 if (items.contains(i18nc("@item quick open item type", "Classes"))) {
358 m_itemTypes = ( ItemTypes )(m_itemTypes | Classes);
359 }
360 if (items.contains(i18nc("@item quick open item type", "Functions"))) {
361 m_itemTypes = ( ItemTypes )(m_itemTypes | Functions);
362 }
363 } else {
364 m_itemTypes = NoItems;
365 }
366}
367
368#include "moc_projectitemquickopen.cpp"

Callers 1

enableProvidersMethod · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected