summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-30 16:44:42 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-02 13:06:22 +0100
commit93f558a0cf6681d722de5f9c91738c6c483ebe7f (patch)
treeb2d03e568fba821fa64c19bed72ca76b5e25da47 /src/widgets/kernel/qwidget.cpp
parentb54dd671aac4dc22a2ad4db7ad9bbaf77ba5a81b (diff)
Remove usages of Q_FOREACH
The last places outside tests, tools and qnx platform code Change-Id: I9918861888cf58bf5dbae5603febb8885fc67709 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/kernel/qwidget.cpp')
-rw-r--r--src/widgets/kernel/qwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
index 28a3c870c2..99b1e1452c 100644
--- a/src/widgets/kernel/qwidget.cpp
+++ b/src/widgets/kernel/qwidget.cpp
@@ -10553,7 +10553,7 @@ void QWidgetPrivate::setParent_sys(QWidget *newparent, Qt::WindowFlags f)
if (QWidget *npw = newparent->nativeParentWidget())
newParentWindow = npw->windowHandle();
- Q_FOREACH (QObject *child, q->windowHandle()->children()) {
+ for (QObject *child : q->windowHandle()->children()) {
QWindow *childWindow = qobject_cast<QWindow *>(child);
if (!childWindow)
continue;