Verified Commit 5a3e2a33 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Make it build with KCMUtils <= 5.83

parent e876f8ca
Pipeline #66019 passed with stage
in 8 minutes and 25 seconds
......@@ -7,6 +7,7 @@
*******************************************************************/
#include <config-knotes.h>
#include <kcmutils_version.h>
#include "config/noteactionconfig.h"
#include "config/notenetworkconfig.h"
......@@ -39,7 +40,11 @@ KNoteConfigDialog::KNoteConfigDialog(const QString &title, QWidget *parent)
setWindowTitle(title);
const QVector<KPluginMetaData> availablePlugins = KPluginLoader::findPlugins(QStringLiteral("pim/kcms/knotes"));
for (const KPluginMetaData &metaData : availablePlugins) {
#if KCMUTILS_VERSION >= QT_VERSION_CHECK(5, 84, 0)
addModule(metaData);
#else
addModule(metaData.pluginId());
#endif
}
connect(button(QDialogButtonBox::Ok), &QPushButton::clicked, this, &KNoteConfigDialog::slotOk);
......
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