Port away from KMimeTypeTrader
It is about to be deprecated See https://phabricator.kde.org/T12177
This commit is contained in:
parent
16f74986fb
commit
a15966c723
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue