Commit 5c2b2175 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to KPluginMetaData::findPlugins

parent 54f8ec3a
Pipeline #75631 passed with stage
in 7 minutes and 19 seconds
......@@ -6,15 +6,15 @@
SPDX-License-Identifier: GPL-2.0-or-later
*******************************************************************/
#include <config-knotes.h>
#include <kcmutils_version.h>
#include "knoteconfigdialog.h"
#include "config/noteactionconfig.h"
#include "config/notenetworkconfig.h"
#include "knoteconfigdialog.h"
#include "kcoreaddons_version.h"
#include "knotesglobalconfig.h"
#include "notesharedglobalconfig.h"
#include "print/knoteprintselectthemecombobox.h"
#include <config-knotes.h>
#include <kcmutils_version.h>
#include <KAuthorized>
#include <KLocalizedString>
......@@ -38,7 +38,11 @@ KNoteConfigDialog::KNoteConfigDialog(const QString &title, QWidget *parent)
button(QDialogButtonBox::Ok)->setDefault(true);
setWindowTitle(title);
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 86, 0)
const QVector<KPluginMetaData> availablePlugins = KPluginLoader::findPlugins(QStringLiteral("pim/kcms/knotes"));
#else
const QVector<KPluginMetaData> availablePlugins = KPluginMetaData::findPlugins(QStringLiteral("pim/kcms/knotes"));
#endif
for (const KPluginMetaData &metaData : availablePlugins) {
addModule(metaData);
}
......
Markdown is supported
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