Verified Commit 9fd36214 authored by Fushan Wen's avatar Fushan Wen
Browse files

runners/services: Port to KApplicationTrader in matchJumpListActions

parent 8ed8b78c
......@@ -337,8 +337,10 @@ private:
return;
}
query = QStringLiteral("exist Actions"); // doesn't work
const auto services = KServiceTypeTrader::self()->query(QStringLiteral("Application")); //, query);
const auto hasActionsFilter = [](const KService::Ptr &service) {
return !service->actions().isEmpty();
};
const auto services = KApplicationTrader::query(hasActionsFilter);
for (const KService::Ptr &service : services) {
if (service->noDisplay()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment