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

Use new connect api + port to for(...:...)

parent f2f472c9
......@@ -1553,7 +1553,7 @@ void AgendaView::updateEventDates(AgendaItem *item, bool addIncidence,
}
if (incidence->dtStart().toLocalTime() == startDt && ev->dtEnd().toLocalTime() == endDt) {
// No change
QTimer::singleShot(0, this, SLOT(updateView()));
QTimer::singleShot(0, this, &AgendaView::updateView);
return;
}
} else if (const KCalCore::Todo::Ptr td = CalendarSupport::todo(incidence)) {
......
......@@ -244,7 +244,7 @@ MultiAgendaView::MultiAgendaView(QWidget *parent)
void MultiAgendaView::setCalendar(const Akonadi::ETMCalendar::Ptr &calendar)
{
EventView::setCalendar(calendar);
Q_FOREACH (KCheckableProxyModel *proxy, d->mCollectionSelectionModels) {
for (KCheckableProxyModel *proxy : qAsConst(d->mCollectionSelectionModels)) {
proxy->setSourceModel(calendar->entityTreeModel());
}
......
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