Changeset View
Changeset View
Standalone View
Standalone View
runners/services/servicerunner.cpp
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 107 | { | |||
---|---|---|---|---|---|
116 | KService::List services = KServiceTypeTrader::self()->query(QStringLiteral("Application"), query); | 116 | KService::List services = KServiceTypeTrader::self()->query(QStringLiteral("Application"), query); | ||
117 | 117 | | |||
118 | if (services.isEmpty()) { | 118 | if (services.isEmpty()) { | ||
119 | return; | 119 | return; | ||
120 | } | 120 | } | ||
121 | 121 | | |||
122 | foreach (const KService::Ptr &service, services) { | 122 | foreach (const KService::Ptr &service, services) { | ||
123 | qCDebug(RUNNER_SERVICES) << service->name() << "is an exact match!" << service->storageId() << service->exec(); | 123 | qCDebug(RUNNER_SERVICES) << service->name() << "is an exact match!" << service->storageId() << service->exec(); | ||
124 | if (service->noDisplay() || service->property(QStringLiteral("NotShowIn"), QVariant::String) == "KDE") { | 124 | if (service->noDisplay()) { | ||
125 | continue; | 125 | continue; | ||
126 | } | 126 | } | ||
127 | Plasma::QueryMatch match(m_runner); | 127 | Plasma::QueryMatch match(m_runner); | ||
128 | match.setType(Plasma::QueryMatch::ExactMatch); | 128 | match.setType(Plasma::QueryMatch::ExactMatch); | ||
129 | setupMatch(service, match); | 129 | setupMatch(service, match); | ||
130 | match.setRelevance(1); | 130 | match.setRelevance(1); | ||
131 | matches << match; | 131 | matches << match; | ||
132 | seen(service); | 132 | seen(service); | ||
▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines |