Commit 32df6f8c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to new KPluginMetaData::findPlugins

parent c94c1c1b
Pipeline #75668 passed with stage
in 13 minutes and 8 seconds
......@@ -141,7 +141,7 @@ configure_file(korganizer-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/korganizer
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f02)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055600)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055500)
option(USE_UNITY_CMAKE_SUPPORT "Use UNITY cmake support (speedup compile time)" OFF)
......
......@@ -11,6 +11,7 @@
#include "calendarview.h"
#include "dialog/filtereditdialog.h"
#include "dialog/searchdialog.h"
#include "kcoreaddons_version.h"
#include "prefs/koprefs.h"
#include <CalendarSupport/ArchiveDialog>
......@@ -72,7 +73,11 @@ void KODialogManager::showOptionsDialog()
if (!mOptionsDialog) {
mOptionsDialog = new KCMultiDialog(mMainView);
connect(mOptionsDialog, qOverload<>(&KCMultiDialog::configCommitted), mMainView, &CalendarView::updateConfig);
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 86, 0)
const QVector<KPluginMetaData> availablePlugins = KPluginLoader::findPlugins(QStringLiteral("pim/kcms/korganizer"));
#else
const QVector<KPluginMetaData> availablePlugins = KPluginMetaData::findPlugins(QStringLiteral("pim/kcms/korganizer"));
#endif
for (const KPluginMetaData &metaData : availablePlugins) {
mOptionsDialog->addModule(metaData);
}
......
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