Verified Commit d11bb310 authored by Alexander Lohnau's avatar Alexander Lohnau
Browse files

Port away from deprecated KCMultiDialog::configCommitted signal

We only display KCMs that are from korganizer, consequently we don't need the componentName parameter
parent d9f06fc8
Pipeline #71424 failed with stage
in 9 minutes and 15 seconds
......@@ -539,15 +539,6 @@ void CalendarView::goPrevious()
void CalendarView::updateConfig()
{
updateConfig(QByteArray("korganizer"));
}
void CalendarView::updateConfig(const QByteArray &receiver)
{
if (receiver != "korganizer") {
return;
}
if (mCalPrinter) {
mCalPrinter->deleteLater();
mCalPrinter = nullptr;
......
......@@ -252,7 +252,6 @@ public Q_SLOTS:
/** options dialog made a changed to the configuration. we catch this
* and notify all widgets which need to update their configuration. */
void updateConfig();
void updateConfig(const QByteArray &);
void handleIncidenceCreated(const Akonadi::Item &item);
......
......@@ -73,10 +73,7 @@ void KODialogManager::showOptionsDialog()
{
if (!mOptionsDialog) {
mOptionsDialog = new KCMultiDialog(mMainView);
connect(mOptionsDialog,
qOverload<const QByteArray &>(&KCMultiDialog::configCommitted),
mMainView,
qOverload<const QByteArray &>(&CalendarView::updateConfig));
connect(mOptionsDialog, qOverload<>(&KCMultiDialog::configCommitted), mMainView, &CalendarView::updateConfig);
const QVector<KPluginMetaData> availablePlugins = KPluginLoader::findPlugins(QStringLiteral("pim/kcms/korganizer"));
for (const KPluginMetaData &metaData : availablePlugins) {
#if KCMUTILS_VERSION >= QT_VERSION_CHECK(5, 84, 0)
......
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