Commit 8ff56c1c authored by Nicolas Fella's avatar Nicolas Fella

Partly port away from KMimeTypeTrader

It is about to be deprecated

See https://phabricator.kde.org/T12177
parent 7f02658b
......@@ -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
= KMimeTypeTrader::self()->query(name(), QStringLiteral("Application"));
= KApplicationTrader::queryByMimeType(name());
KService::List::const_iterator it(offerList.begin());
for (; it != offerList.constEnd(); ++it) {
services.append((*it)->storageId());
......
......@@ -29,7 +29,6 @@
#include <KPropertiesDialog>
#include <KService>
#include <KRun>
#include <KMimeTypeTrader>
#endif
#include <KAboutData>
#include <KLocalizedString>
......
Markdown is supported
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