Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
9fd36214
Verified
Commit
9fd36214
authored
Feb 20, 2022
by
Fushan Wen
Browse files
runners/services: Port to KApplicationTrader in matchJumpListActions
parent
8ed8b78c
Changes
1
Hide whitespace changes
Inline
Side-by-side
runners/services/servicerunner.cpp
View file @
9fd36214
...
...
@@ -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
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment