Commit d5a8e592 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from deprecated KPluginLoader

parent 536d7661
Pipeline #204354 passed with stage
in 1 minute and 8 seconds
......@@ -14,7 +14,7 @@ set (MINUET_VERSION "0.4.0.${RELEASE_SERVICE_COMPACT_VERSION}")
project(minuet VERSION ${MINUET_VERSION})
set(KF5_MIN_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.86.0")
set(QT_MIN_VERSION "5.7.0")
find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
......
......@@ -32,7 +32,8 @@
#include <interfaces/isoundcontroller.h>
#if !defined(Q_OS_ANDROID)
#include <KPluginLoader>
#include <QPluginLoader>
#include <KPluginMetaData>
#endif
#include <QDebug>
......@@ -42,7 +43,7 @@ namespace Minuet
PluginController::PluginController(QObject *parent) : IPluginController(parent)
{
#if !defined(Q_OS_ANDROID)
m_plugins = KPluginLoader::findPlugins(QStringLiteral("minuet"));
m_plugins = KPluginMetaData::findPlugins(QStringLiteral("minuet"));
#endif
}
......@@ -65,7 +66,7 @@ bool PluginController::initialize(Core *core)
continue;
}
KPluginLoader loader(pluginMetaData.fileName());
QPluginLoader loader(pluginMetaData.fileName());
IPlugin *plugin = qobject_cast<IPlugin *>(loader.instance());
if (plugin) {
m_loadedPlugins.insert(pluginMetaData, plugin);
......
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