Port an occurence of KMimeTypeTrader

It is about to be deprecated

See https://phabricator.kde.org/T12177
remotes/origin/work/aacid/remove_todo
Nicolas Fella 6 years ago committed by Albert Astals Cid
parent 88eb005c93
commit 50e8c4f333
  1. 4
      core/document.cpp

@ -58,7 +58,7 @@
#include <KLocalizedString>
#include <KMacroExpander>
#include <KMessageBox>
#include <KMimeTypeTrader>
#include <KApplicationTrader>
#include <KPluginMetaData>
#include <KProcess>
#include <KRun>
@ -3902,7 +3902,7 @@ void Document::processAction(const Action *action)
}
}
KService::Ptr ptr = KMimeTypeTrader::self()->preferredService(mime.name(), QStringLiteral("Application"));
KService::Ptr ptr = KApplicationTrader::preferredService(mime.name());
if (ptr) {
QList<QUrl> lst;
lst.append(url);

Loading…
Cancel
Save