diff --git a/src/plasma/private/associatedapplicationmanager.cpp b/src/plasma/private/associatedapplicationmanager.cpp index 311531693..e4df97295 100644 --- a/src/plasma/private/associatedapplicationmanager.cpp +++ b/src/plasma/private/associatedapplicationmanager.cpp @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include #include @@ -70,7 +70,7 @@ public: QAction *a = i.key()->actions()->action(QStringLiteral("run associated application")); if (a) { const QString mimeType = mimeDb.mimeTypeForUrl(i.value().first()).name(); - const KService::List apps = KMimeTypeTrader::self()->query(mimeType); + const KService::List apps = KApplicationTrader::queryByMimeType(mimeType); if (!apps.isEmpty()) { a->setIcon(QIcon::fromTheme(apps.first()->icon())); a->setText(i18n("Open with %1", apps.first()->genericName().isEmpty() ? apps.first()->genericName() : apps.first()->name())); @@ -171,7 +171,7 @@ void AssociatedApplicationManager::setUrls(Plasma::Applet *applet, const QListquery(mimeType); + const KService::List apps = KApplicationTrader::queryByMimeType(mimeType); if (!apps.isEmpty()) { a->setIcon(QIcon::fromTheme(apps.first()->icon())); a->setText(i18n("Open with %1", apps.first()->genericName().isEmpty() ? apps.first()->genericName() : apps.first()->name()));