Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KBackup
Commits
3d0be7b1
Commit
3d0be7b1
authored
Nov 21, 2020
by
Nicolas Fella
Browse files
Port from KMimeTypeTrader to KApplicationTrader
The former will be deprecated soon.
parent
ea07d02e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Selector.cxx
View file @
3d0be7b1
...
...
@@ -16,7 +16,7 @@
#include <KLocalizedString>
#include <KPropertiesDialog>
#include <KFileItem>
#include <K
MimeType
Trader>
#include <K
Application
Trader>
#include <KActionCollection>
#include <KMessageBox>
...
...
@@ -679,7 +679,7 @@ void Selector::populateOpenMenu()
KFileItem
fileItem
(
sourceUrl
);
QString
mimeType
(
fileItem
.
determineMimeType
().
name
());
const
KService
::
List
services
=
K
MimeTypeTrader
::
self
()
->
query
(
mimeType
);
const
KService
::
List
services
=
K
ApplicationTrader
::
queryByMimeType
(
mimeType
);
for
(
const
KService
::
Ptr
&
service
:
services
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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