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 cdc3bbed authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 91089ee4
......@@ -54,7 +54,7 @@ using namespace Akonadi;
void SessionPrivate::startNext()
{
QTimer::singleShot(0, mParent, SLOT(doStartNext()));
QTimer::singleShot(0, mParent, [this]() { doStartNext(); });
}
void SessionPrivate::reconnect()
......
......@@ -122,7 +122,7 @@ void SpecialCollectionsPrivate::collectionStatisticsChanged(Akonadi::Collection:
fetchJob->fetchScope().setAncestorRetrieval(Akonadi::CollectionFetchScope::None);
fetchJob->setProperty("statistics", QVariant::fromValue(statistics));
q->connect(fetchJob, SIGNAL(result(KJob*)), q, SLOT(collectionFetchJobFinished(KJob*)));
q->connect(fetchJob, &CollectionFetchJob::result, q, [this](KJob *job) { collectionFetchJobFinished(job); });
}
void SpecialCollectionsPrivate::collectionFetchJobFinished(KJob *job)
......
......@@ -167,8 +167,6 @@ private:
#endif
SpecialCollectionsPrivate *const d;
Q_PRIVATE_SLOT(d, void collectionFetchJobFinished(KJob *))
//@endcond
};
......
......@@ -163,8 +163,8 @@ AgentInstanceWidget::AgentInstanceWidget(QWidget *parent)
connect(d->mView->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
this, SLOT(currentAgentInstanceChanged(QModelIndex,QModelIndex)));
connect(d->mView, SIGNAL(doubleClicked(QModelIndex)),
this, SLOT(currentAgentInstanceDoubleClicked(QModelIndex)));
connect(d->mView, &QListView::doubleClicked,
this, [this](const QModelIndex &currentIndex) { d->currentAgentInstanceDoubleClicked(currentIndex); });
connect(d->mView, SIGNAL(clicked(QModelIndex)),
this, SLOT(currentAgentInstanceClicked(QModelIndex)));
}
......
......@@ -135,7 +135,6 @@ private:
Private *const d;
Q_PRIVATE_SLOT(d, void currentAgentInstanceChanged(const QModelIndex &, const QModelIndex &))
Q_PRIVATE_SLOT(d, void currentAgentInstanceDoubleClicked(const QModelIndex &))
Q_PRIVATE_SLOT(d, void currentAgentInstanceClicked(const QModelIndex &currentIndex))
//@endcond
};
......
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