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
KDE CLI tools
Commits
8ff56c1c
Commit
8ff56c1c
authored
Aug 12, 2020
by
Nicolas Fella
Browse files
Partly port away from KMimeTypeTrader
It is about to be deprecated See
https://phabricator.kde.org/T12177
parent
7f02658b
Changes
2
Hide whitespace changes
Inline
Side-by-side
keditfiletype/mimetypedata.cpp
View file @
8ff56c1c
...
...
@@ -26,6 +26,7 @@
#include
<ksharedconfig.h>
#include
<kconfiggroup.h>
#include
<kmimetypetrader.h>
#include
<KApplicationTrader>
#include
<QStandardPaths>
#include
<QXmlStreamReader>
#include
<QFileInfo>
...
...
@@ -238,7 +239,7 @@ QStringList MimeTypeData::getAppOffers() const
{
QStringList
services
;
const
KService
::
List
offerList
=
K
MimeTypeTrader
::
self
()
->
query
(
name
(),
QStringLiteral
(
"Application"
));
=
K
ApplicationTrader
::
queryByMimeType
(
name
(
));
KService
::
List
::
const_iterator
it
(
offerList
.
begin
());
for
(;
it
!=
offerList
.
constEnd
();
++
it
)
{
services
.
append
((
*
it
)
->
storageId
());
...
...
kioclient/kioclient.cpp
View file @
8ff56c1c
...
...
@@ -29,7 +29,6 @@
#include
<KPropertiesDialog>
#include
<KService>
#include
<KRun>
#include
<KMimeTypeTrader>
#endif
#include
<KAboutData>
#include
<KLocalizedString>
...
...
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