Commit c11c3038 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use qOverload directly (scripted)

parent 7894f7f2
Pipeline #77330 passed with stage
in 5 minutes and 42 seconds
......@@ -42,7 +42,7 @@ CalFilterPartStatusProxyModel::CalFilterPartStatusProxyModel(QObject *parent)
, d(new Private())
{
QObject::connect(d->mIdentityManager,
QOverload<>::of(&KIdentityManagement::IdentityManager::changed),
qOverload<>(&KIdentityManagement::IdentityManager::changed),
this,
&CalFilterPartStatusProxyModel::slotIdentitiesChanged);
}
......
......@@ -46,7 +46,7 @@ void ETMCalendarPrivate::init()
auto monitor = new Akonadi::Monitor(q);
monitor->setObjectName(QStringLiteral("ETMCalendarMonitor"));
connect(monitor,
QOverload<const Akonadi::Collection &, const QSet<QByteArray> &>::of(&Monitor::collectionChanged),
qOverload<const Akonadi::Collection &, const QSet<QByteArray> &>(&Monitor::collectionChanged),
this,
[this](const Akonadi::Collection &cols, const QSet<QByteArray> &set) {
onCollectionChanged(cols, set);
......@@ -454,7 +454,7 @@ ETMCalendar::ETMCalendar(Monitor *monitor, QObject *parent)
if (monitor) {
QObject::connect(monitor,
QOverload<const Akonadi::Collection &, const QSet<QByteArray> &>::of(&Akonadi::Monitor::collectionChanged),
qOverload<const Akonadi::Collection &, const QSet<QByteArray> &>(&Akonadi::Monitor::collectionChanged),
d,
&ETMCalendarPrivate::onCollectionChanged);
d->mETM = CalendarModel::create(monitor);
......
......@@ -230,7 +230,7 @@ bool ICalImporter::importIntoExistingResource(const QUrl &url, Akonadi::Collecti
} else {
d->m_collection = collection;
KIO::StoredTransferJob *job = KIO::storedGet(url);
connect(job, QOverload<KIO::Job *, const QByteArray &>::of(&KIO::TransferJob::data), d, [this](KIO::Job *job, const QByteArray &ba) {
connect(job, qOverload<KIO::Job *, const QByteArray &>(&KIO::TransferJob::data), d, [this](KIO::Job *job, const QByteArray &ba) {
d->remoteDownloadFinished(job, ba);
});
}
......
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