Commit a58c6891 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

thumbnail: Use QPluginLoader to resolve plugin path

We do not need to use the deprecated KPluginLoader anymore
parent e49f458c
Pipeline #169781 passed with stage
in 3 minutes and 2 seconds
......@@ -35,12 +35,12 @@
#include <QLibrary>
#include <QDebug>
#include <QRandomGenerator>
#include <QPluginLoader>
#include <KConfigGroup>
#include <KFileItem>
#include <KLocalizedString>
#include <KPluginInfo>
#include <KPluginLoader>
#include <KServiceTypeTrader>
#include <KSharedConfig>
......@@ -665,7 +665,7 @@ ThumbCreatorWithMetadata* ThumbnailProtocol::getThumbCreator(const QString& plug
// Don't use KPluginFactory here, this is not a QObject and
// neither is ThumbCreator
ThumbCreator *creator = nullptr;
QLibrary library(KPluginLoader::findPlugin((plugin)));
QLibrary library(QPluginLoader(plugin).fileName());
if (library.load()) {
auto createFn = (newCreator)library.resolve("new_creator");
if (createFn) {
......
Supports Markdown
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