Commit a15966c7 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from KMimeTypeTrader

It is about to be deprecated

See https://phabricator.kde.org/T12177
parent 16f74986
......@@ -19,7 +19,7 @@
#include <KConfigGroup>
#include <KDesktopFile>
#include <KLocalizedString>
#include <KMimeTypeTrader>
#include <KApplicationTrader>
namespace KWin
{
......@@ -115,15 +115,15 @@ ExampleClientModel::~ExampleClientModel()
void ExampleClientModel::init()
{
if (const auto s = KMimeTypeTrader::self()->preferredService(QStringLiteral("inode/directory"))) {
if (const auto s = KApplicationTrader::preferredService(QStringLiteral("inode/directory"))) {
m_services << s;
m_fileManager = s;
}
if (const auto s = KMimeTypeTrader::self()->preferredService(QStringLiteral("text/html"))) {
if (const auto s = KApplicationTrader::preferredService(QStringLiteral("text/html"))) {
m_services << s;
m_browser = s;
}
if (const auto s = KMimeTypeTrader::self()->preferredService(QStringLiteral("message/rfc822"))) {
if (const auto s = KApplicationTrader::preferredService(QStringLiteral("message/rfc822"))) {
m_services << s;
m_email = s;
}
......
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