From a15966c72383f7dd7793158f3de8a5eecd6eb9aa Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Wed, 12 Aug 2020 00:24:23 +0200 Subject: [PATCH] Port away from KMimeTypeTrader It is about to be deprecated See https://phabricator.kde.org/T12177 --- kcmkwin/kwintabbox/layoutpreview.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kcmkwin/kwintabbox/layoutpreview.cpp b/kcmkwin/kwintabbox/layoutpreview.cpp index 6f7c54fec6..d0d543cca3 100644 --- a/kcmkwin/kwintabbox/layoutpreview.cpp +++ b/kcmkwin/kwintabbox/layoutpreview.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include 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; }