aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/calendar/qquickdayofweekrow.cpp
diff options
context:
space:
mode:
authorAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-01-15 13:17:07 +0300
committerAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-01-15 13:03:58 +0000
commit38366e0d6371aaa5e5058c2d35ef42172359e3ed (patch)
tree7ec20df594ade04618bff93397ca98df7876a5cc /src/imports/calendar/qquickdayofweekrow.cpp
parentf9a14321a42485f36c1445d81033995b5d820ce0 (diff)
Imports: replace foreach with range-based for
Change-Id: I31bc93c2b3f6ecbd0680dc9d626626c4fe57eec8 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/calendar/qquickdayofweekrow.cpp')
-rw-r--r--src/imports/calendar/qquickdayofweekrow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/calendar/qquickdayofweekrow.cpp b/src/imports/calendar/qquickdayofweekrow.cpp
index 8788ac95..0fb112c9 100644
--- a/src/imports/calendar/qquickdayofweekrow.cpp
+++ b/src/imports/calendar/qquickdayofweekrow.cpp
@@ -88,7 +88,8 @@ void QQuickDayOfWeekRowPrivate::resizeItems()
itemSize.setWidth((contentItem->width() - 6 * spacing) / 7);
itemSize.setHeight(contentItem->height());
- foreach (QQuickItem *item, contentItem->childItems())
+ const auto childItems = contentItem->childItems();
+ for (QQuickItem *item : childItems)
item->setSize(itemSize);
}