Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 92797a99 authored by Laurent Montel's avatar Laurent Montel 😁

Use QOverload

parent 867ec6d9
......@@ -57,8 +57,7 @@ CalFilterPartStatusProxyModel::CalFilterPartStatusProxyModel(QObject *parent)
, d(new Private())
{
QObject::connect(d->mIdentityManager, static_cast<void (KIdentityManagement::IdentityManager::*)()>(&KIdentityManagement::IdentityManager::changed),
this, &CalFilterPartStatusProxyModel::slotIdentitiesChanged);
QObject::connect(d->mIdentityManager, QOverload<>::of(&KIdentityManagement::IdentityManager::changed), this, &CalFilterPartStatusProxyModel::slotIdentitiesChanged);
}
CalFilterPartStatusProxyModel::~CalFilterPartStatusProxyModel()
......
......@@ -492,8 +492,7 @@ ETMCalendar::ETMCalendar(Monitor *monitor, QObject *parent)
Q_D(ETMCalendar);
if (monitor) {
QObject::connect(monitor, static_cast<void (Akonadi::Monitor::*)(const Akonadi::Collection &, const QSet<QByteArray> &)>(&Akonadi::Monitor::collectionChanged),
d, &ETMCalendarPrivate::onCollectionChanged);
QObject::connect(monitor, QOverload<const Akonadi::Collection &, const QSet<QByteArray> &>::of(&Akonadi::Monitor::collectionChanged), d, &ETMCalendarPrivate::onCollectionChanged);
d->mETM = CalendarModel::create(monitor);
d->mETM->setObjectName(QStringLiteral("ETM"));
d->mETM->setListFilter(Akonadi::CollectionFetchScope::Display);
......
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