Commit 36b82e49 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated KMimeTypeTrader::self()->query

parent d1bee411
Pipeline #193434 passed with stage
in 3 minutes and 15 seconds
......@@ -9,16 +9,18 @@
#include "arkviewer.h"
#include "ark_debug.h"
#include <KIO/JobUiDelegate>
#include <KAboutPluginDialog>
#include <KActionCollection>
#include <KApplicationTrader>
#include <KIO/ApplicationLauncherJob>
#include <KIO/JobUiDelegate>
#include <KLocalizedString>
#include <KMimeTypeTrader>
#include <KMessageBox>
#include <KMimeTypeTrader>
#include <KParts/OpenUrlArguments>
#include <KXMLGUIFactory>
#include <KActionCollection>
#include <KAboutPluginDialog>
#include <KParts/PartLoader>
#include <KPluginMetaData>
#include <KXMLGUIFactory>
#include <QFile>
#include <QMimeDatabase>
......@@ -206,7 +208,7 @@ bool ArkViewer::viewInInternalViewer(const KService::Ptr viewer, const QString&
KService::Ptr ArkViewer::getExternalViewer(const QString &mimeType)
{
KService::List offers = KMimeTypeTrader::self()->query(mimeType, QStringLiteral("Application"));
KService::List offers = KApplicationTrader::queryByMimeType(mimeType);
if (!offers.isEmpty()) {
return offers.first();
......
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