aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickanchors/tst_qquickanchors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickanchors/tst_qquickanchors.cpp')
-rw-r--r--tests/auto/quick/qquickanchors/tst_qquickanchors.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickanchors/tst_qquickanchors.cpp b/tests/auto/quick/qquickanchors/tst_qquickanchors.cpp
index b7c0d28637..e52e215bad 100644
--- a/tests/auto/quick/qquickanchors/tst_qquickanchors.cpp
+++ b/tests/auto/quick/qquickanchors/tst_qquickanchors.cpp
@@ -1,5 +1,8 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
+
#include <qtest.h>
#include <QSignalSpy>
#include <private/qquickitem_p.h>