summaryrefslogtreecommitdiffstats
path: root/tests/manual/qscreen/propertywatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/qscreen/propertywatcher.cpp')
-rw-r--r--tests/manual/qscreen/propertywatcher.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/manual/qscreen/propertywatcher.cpp b/tests/manual/qscreen/propertywatcher.cpp
index 5eec9f275b..6ba6f5c351 100644
--- a/tests/manual/qscreen/propertywatcher.cpp
+++ b/tests/manual/qscreen/propertywatcher.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "propertywatcher.h"
#include <QMetaProperty>
@@ -85,8 +85,8 @@ void PropertyWatcher::setSubject(QObject *s, const QString &annotation)
void PropertyWatcher::updateAllFields()
{
- QList<PropertyField *> fields = findChildren<PropertyField*>();
- foreach (PropertyField *field, fields)
+ const QList<PropertyField *> fields = findChildren<PropertyField*>();
+ for (PropertyField *field : fields)
field->propertyChanged();
emit updatedAllFields(this);
}