Changeset View
Changeset View
Standalone View
Standalone View
runners/windowedwidgets/windowedwidgetsrunner.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 53 | { | |||
---|---|---|---|---|---|
55 | 55 | | |||
56 | if (!context.singleRunnerQueryMode() && term.length() < 3) { | 56 | if (!context.singleRunnerQueryMode() && term.length() < 3) { | ||
57 | return; | 57 | return; | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | 60 | | |||
61 | QList<Plasma::QueryMatch> matches; | 61 | QList<Plasma::QueryMatch> matches; | ||
62 | 62 | | |||
63 | foreach (const KPluginMetaData &md, Plasma::PluginLoader::self()->listAppletMetaData(QString())) { | 63 | const auto metaData = Plasma::PluginLoader::self()->listAppletMetaData(QString()); | ||
64 | for (const KPluginMetaData &md : metaData) { | ||||
64 | if (!md.isValid()) { | 65 | if (!md.isValid()) { | ||
65 | continue; | 66 | continue; | ||
66 | } | 67 | } | ||
67 | 68 | | |||
68 | if (((md.name().contains(term, Qt::CaseInsensitive) || | 69 | if (((md.name().contains(term, Qt::CaseInsensitive) || | ||
69 | md.value(QLatin1String("GenericName")).contains(term, Qt::CaseInsensitive) || | 70 | md.value(QLatin1String("GenericName")).contains(term, Qt::CaseInsensitive) || | ||
70 | md.description().contains(term, Qt::CaseInsensitive)) || | 71 | md.description().contains(term, Qt::CaseInsensitive)) || | ||
71 | md.category().contains(term, Qt::CaseInsensitive) || | 72 | md.category().contains(term, Qt::CaseInsensitive) || | ||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |