Unverified Commit 01161820 authored by Luca Beltrame's avatar Luca Beltrame
Browse files

Fix build with the newer signals to be introduced in KF 5.78

parent ff5545a3
Pipeline #45388 canceled with stage
......@@ -24,6 +24,7 @@
#include "koviewmanager.h"
#include "kowindowlist.h"
#include "korgacinterface.h"
#include <kwidgetsaddons_version.h>
#include <KAuthorized>
#include <CalendarSupport/CollectionSelection>
......@@ -480,8 +481,14 @@ void ActionManager::initActions()
mFilterAction->setToolBarMode(KSelectAction::MenuMode);
mACollection->addAction(QStringLiteral("filter_select"), mFilterAction);
mFilterAction->setEditable(false);
#if KWIDGETSADDONS_VERSION < QT_VERSION_CHECK(5, 78, 0)
connect(mFilterAction, qOverload<int>(&KSelectAction::triggered),
mCalendarView, &CalendarView::filterActivated);
#else
connect(mFilterAction, &KSelectAction::indexTriggered),
mCalendarView, &CalendarView::filterActivated);
#endif
connect(mCalendarView, &CalendarView::filtersUpdated,
this, &ActionManager::setItems);
connect(mCalendarView, &CalendarView::filterChanged,
......
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