summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-19 13:54:07 +0200
committerMontel Laurent <[email protected]>2017-09-19 13:54:07 +0200
commitd0a0848d02956aff1354dc319237360a77415299 (patch)
tree0318c52e823e15c21a77df0558e24e2a9c6b9714
parentf2f472c9b33ae07c1cc6ed87ba4ea469172e3f3e (diff)
Use new connect api + port to for(...:...)
-rw-r--r--src/agenda/agendaview.cpp2
-rw-r--r--src/multiagenda/multiagendaview.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/agenda/agendaview.cpp b/src/agenda/agendaview.cpp
index 4e60f07..1497462 100644
--- a/src/agenda/agendaview.cpp
+++ b/src/agenda/agendaview.cpp
@@ -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)) {
diff --git a/src/multiagenda/multiagendaview.cpp b/src/multiagenda/multiagendaview.cpp
index a1f1d6d..23589ab 100644
--- a/src/multiagenda/multiagendaview.cpp
+++ b/src/multiagenda/multiagendaview.cpp
@@ -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());
}