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; }