Changeset View
Changeset View
Standalone View
Standalone View
shell/settings/pluginpreferences.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 46 | const QMap<QString, QString> categories = { | |||
---|---|---|---|---|---|
47 | { "Core", i18nc("@title:group", "Core") }, | 47 | { "Core", i18nc("@title:group", "Core") }, | ||
48 | { "Project Management", i18nc("@title:group", "Project Management") }, | 48 | { "Project Management", i18nc("@title:group", "Project Management") }, | ||
49 | { "Version Control", i18nc("@title:group", "Version Control") }, | 49 | { "Version Control", i18nc("@title:group", "Version Control") }, | ||
50 | { "Utilities", i18nc("@title:group", "Utilities") }, | 50 | { "Utilities", i18nc("@title:group", "Utilities") }, | ||
51 | { "Documentation", i18nc("@title:group", "Documentation") }, | 51 | { "Documentation", i18nc("@title:group", "Documentation") }, | ||
52 | { "Language Support", i18nc("@title:group", "Language Support") }, | 52 | { "Language Support", i18nc("@title:group", "Language Support") }, | ||
53 | { "Debugging", i18nc("@title:group", "Debugging") }, | 53 | { "Debugging", i18nc("@title:group", "Debugging") }, | ||
54 | { "Testing", i18nc("@title:group", "Testing") }, | 54 | { "Testing", i18nc("@title:group", "Testing") }, | ||
55 | { "Analyzers", i18nc("@title:group", "Analyzers") }, | ||||
55 | { "Other", i18nc("@title:group", "Other") } | 56 | { "Other", i18nc("@title:group", "Other") } | ||
56 | }; | 57 | }; | ||
57 | foreach (const KPluginMetaData& info, Core::self()->pluginControllerInternal()->allPluginInfos()) { | 58 | foreach (const KPluginMetaData& info, Core::self()->pluginControllerInternal()->allPluginInfos()) { | ||
58 | const QString loadMode = info.value(QStringLiteral("X-KDevelop-LoadMode")); | 59 | const QString loadMode = info.value(QStringLiteral("X-KDevelop-LoadMode")); | ||
59 | if( loadMode.isEmpty() || loadMode == QLatin1String("UserSelectable") ) | 60 | if( loadMode.isEmpty() || loadMode == QLatin1String("UserSelectable") ) | ||
60 | { | 61 | { | ||
61 | QString category = info.category(); | 62 | QString category = info.category(); | ||
62 | if (!categories.contains(category)) { | 63 | if (!categories.contains(category)) { | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |