Commit c31afbce authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated method

parent 4640ed39
Pipeline #88590 passed with stage
in 2 minutes and 47 seconds
......@@ -28,6 +28,7 @@
#include "pluginmanager.h"
#include "ark_debug.h"
#include "settings.h"
#include "kcoreaddons_version.h"
#include <KPluginLoader>
#include <KSharedConfig>
......@@ -214,7 +215,11 @@ QVector<Plugin*> PluginManager::filterBy(const QVector<Plugin*> &plugins, const
void PluginManager::loadPlugins()
{
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 86, 0)
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("kerfuffle"));
#else
const QVector<KPluginMetaData> plugins = KPluginMetaData::findPlugins(QStringLiteral("kerfuffle"));
#endif
QSet<QString> addedPlugins;
for (const KPluginMetaData &metaData : plugins) {
const auto pluginId = metaData.pluginId();
......
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