Mark all of Qt as free of Q_FOREACH, except where it isn't
The density of Q_FOREACH uses in this and some other modules is still extremely high, too high for anyone to tackle in a short amount of time. Even if they're not concentrated in just a few TUs, we need to make progress on a global QT_NO_FOREACH default, so grab the nettle and stick to our strategy: Mark the whole of Qt with QT_NO_FOREACH, to prevent new uses from creeping in, and whitelist the affected TUs by #undef'ing QT_NO_FOREACH locally, at the top of each file. For TUs that are part of a larger executable, this requires these files to be compiled separately, so add them to NO_PCH_SOURCES (which implies NO_UNITY_BUILD_SOURCES, too). In tst_qglobal.cpp and tst_qcollections.cpp change the comment on the #undef QT_NO_FOREACH to indicate that these actually test the macro. Task-number: QTBUG-115839 Change-Id: Iecc444eb7d43d7e4d037f6e155abe0e14a00a5d6 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
1a3f573bd9
commit
11d6932560
@ -161,6 +161,7 @@ qt_internal_add_global_definition(QT_NO_QEXCHANGE)
|
|||||||
qt_internal_add_global_definition(QT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
|
qt_internal_add_global_definition(QT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
|
||||||
qt_internal_add_global_definition(QT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH)
|
qt_internal_add_global_definition(QT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH)
|
||||||
qt_internal_add_global_definition(QT_USE_QSTRINGBUILDER SCOPE PLUGIN TOOL MODULE)
|
qt_internal_add_global_definition(QT_USE_QSTRINGBUILDER SCOPE PLUGIN TOOL MODULE)
|
||||||
|
qt_internal_add_global_definition(QT_NO_FOREACH)
|
||||||
|
|
||||||
if(WARNINGS_ARE_ERRORS)
|
if(WARNINGS_ARE_ERRORS)
|
||||||
qt_internal_set_warnings_are_errors_flags(PlatformModuleInternal INTERFACE)
|
qt_internal_set_warnings_are_errors_flags(PlatformModuleInternal INTERFACE)
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
//! [0]
|
//! [0]
|
||||||
class Employee
|
class Employee
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
#include <QQmlComponent>
|
#include <QQmlComponent>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2014 Ivan Komissarov
|
// Copyright (C) 2014 Ivan Komissarov
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
//! [0]
|
//! [0]
|
||||||
QStorageInfo storage(qApp->applicationDirPath());
|
QStorageInfo storage(qApp->applicationDirPath());
|
||||||
if (storage.isValid() && storage.isReady()) {
|
if (storage.isValid() && storage.isReady()) {
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
//! [0]
|
//! [0]
|
||||||
QMouseEvent event(QEvent::MouseButtonPress, pos, 0, 0, 0);
|
QMouseEvent event(QEvent::MouseButtonPress, pos, 0, 0, 0);
|
||||||
QApplication::sendEvent(mainWindow, &event);
|
QApplication::sendEvent(mainWindow, &event);
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
//! [0]
|
//! [0]
|
||||||
void MyWidget::dragEnterEvent(QDragEnterEvent *event)
|
void MyWidget::dragEnterEvent(QDragEnterEvent *event)
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
//! [0]
|
//! [0]
|
||||||
QDataStream out(...);
|
QDataStream out(...);
|
||||||
QVariant v(123); // The variant now contains an int
|
QVariant v(123); // The variant now contains an int
|
||||||
|
@ -33,8 +33,6 @@ qt_internal_add_plugin(QIOSIntegrationPlugin
|
|||||||
qiosintegration.mm # undef QT_NO_FOREACH
|
qiosintegration.mm # undef QT_NO_FOREACH
|
||||||
qiosplatformaccessibility.mm # undef QT_NO_FOREACH
|
qiosplatformaccessibility.mm # undef QT_NO_FOREACH
|
||||||
qiosscreen.mm # undef QT_NO_FOREACH
|
qiosscreen.mm # undef QT_NO_FOREACH
|
||||||
DEFINES
|
|
||||||
QT_NO_FOREACH
|
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
${FWAudioToolbox}
|
${FWAudioToolbox}
|
||||||
${FWFoundation}
|
${FWFoundation}
|
||||||
|
@ -37,8 +37,6 @@ qt_internal_add_plugin(QQnxIntegrationPlugin
|
|||||||
qqnxscreen.cpp # undef QT_NO_FOREACH
|
qqnxscreen.cpp # undef QT_NO_FOREACH
|
||||||
qqnxscreeneventhandler.cpp # undef QT_NO_FOREACH
|
qqnxscreeneventhandler.cpp # undef QT_NO_FOREACH
|
||||||
qqnxwindow.cpp # undef QT_NO_FOREACH
|
qqnxwindow.cpp # undef QT_NO_FOREACH
|
||||||
DEFINES
|
|
||||||
QT_NO_FOREACH
|
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::CorePrivate
|
Qt::CorePrivate
|
||||||
|
@ -27,7 +27,6 @@ qt_internal_add_plugin(QGtk3ThemePlugin
|
|||||||
qgtk3dialoghelpers.cpp # undef QT_NO_FOREACH
|
qgtk3dialoghelpers.cpp # undef QT_NO_FOREACH
|
||||||
DEFINES
|
DEFINES
|
||||||
GDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_6
|
GDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_6
|
||||||
QT_NO_FOREACH
|
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
PkgConfig::GTK3
|
PkgConfig::GTK3
|
||||||
Qt::Core
|
Qt::Core
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <qtconcurrentmedian.h>
|
#include <qtconcurrentmedian.h>
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <qtconcurrentthreadengine.h>
|
#include <qtconcurrentthreadengine.h>
|
||||||
#include <qexception.h>
|
#include <qexception.h>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
|
@ -15,6 +15,8 @@ qt_internal_add_test(tst_qglobal
|
|||||||
SOURCES
|
SOURCES
|
||||||
qglobal.c
|
qglobal.c
|
||||||
tst_qglobal.cpp
|
tst_qglobal.cpp
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
tst_qglobal.cpp # undef QT_NO_FOREACH
|
||||||
)
|
)
|
||||||
|
|
||||||
## Scopes:
|
## Scopes:
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file tests Q_FOREACH!
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
#include <QPair>
|
#include <QPair>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QtCore/private/qabstractfileengine_p.h>
|
#include <QtCore/private/qabstractfileengine_p.h>
|
||||||
#include <QtCore/private/qfsfileengine_p.h>
|
#include <QtCore/private/qfsfileengine_p.h>
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Copyright (C) 2017 Intel Corporation.
|
// Copyright (C) 2017 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QTemporaryFile>
|
#include <QTemporaryFile>
|
||||||
#if QT_CONFIG(process)
|
#if QT_CONFIG(process)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2021 The Qt Company Ltd.
|
// Copyright (C) 2021 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Copyright (C) 2021 Intel Corporation.
|
// Copyright (C) 2021 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#define _CRT_SECURE_NO_WARNINGS 1
|
#define _CRT_SECURE_NO_WARNINGS 1
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2021 The Qt Company Ltd.
|
// Copyright (C) 2021 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QStandardPaths>
|
#include <QStandardPaths>
|
||||||
#include <QScopeGuard>
|
#include <QScopeGuard>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2013 BlackBerry Limited. All rights reserved.
|
// Copyright (C) 2013 BlackBerry Limited. All rights reserved.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <qplatformdefs.h>
|
#include <qplatformdefs.h>
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
// Copyright (C) 2021 The Qt Company Ltd.
|
// Copyright (C) 2021 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// Copyright (C) 2013 David Faure <faure+bluesystems@kde.org>
|
// Copyright (C) 2013 David Faure <faure+bluesystems@kde.org>
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QtConcurrentRun>
|
#include <QtConcurrentRun>
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Copyright (C) 2020 Intel Corporation.
|
// Copyright (C) 2020 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <qstandardpaths.h>
|
#include <qstandardpaths.h>
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QOperatingSystemVersion>
|
#include <QOperatingSystemVersion>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2014 Ivan Komissarov <ABBAPOH@gmail.com>
|
// Copyright (C) 2014 Ivan Komissarov <ABBAPOH@gmail.com>
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QStorageInfo>
|
#include <QStorageInfo>
|
||||||
#include <QTemporaryFile>
|
#include <QTemporaryFile>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2021 The Qt Company Ltd.
|
// Copyright (C) 2021 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QStandardPaths>
|
#include <QStandardPaths>
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Copyright (C) 2017 Intel Corporation.
|
// Copyright (C) 2017 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <qcoreapplication.h>
|
#include <qcoreapplication.h>
|
||||||
#include <qstring.h>
|
#include <qstring.h>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
// Copyright (C) 2016 Intel Corporation.
|
// Copyright (C) 2016 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <qvariant.h>
|
#include <qvariant.h>
|
||||||
|
|
||||||
// don't assume <type_traits>
|
// don't assume <type_traits>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "tst_qmimedatabase.h"
|
#include "tst_qmimedatabase.h"
|
||||||
#include <qmimedatabase.h>
|
#include <qmimedatabase.h>
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
// Copyright (C) 2020 The Qt Company Ltd.
|
// Copyright (C) 2020 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#define QFUTURE_TEST
|
#define QFUTURE_TEST
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file tests Q_FOREACH over containers (centralize in a tst_qforeach?)
|
||||||
|
|
||||||
// test the container forwards
|
// test the container forwards
|
||||||
#include <QtContainerFwd>
|
#include <QtContainerFwd>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2021 The Qt Company Ltd.
|
// Copyright (C) 2021 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QtCore/QString>
|
#include <QtCore/QString>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
#include <qeasingcurve.h>
|
#include <qeasingcurve.h>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QtCore/QCoreApplication>
|
#include <QtCore/QCoreApplication>
|
||||||
#include <QtCore/QElapsedTimer>
|
#include <QtCore/QElapsedTimer>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2021 The Qt Company Ltd.
|
// Copyright (C) 2021 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QAtomicInt>
|
#include <QAtomicInt>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
|
@ -9,6 +9,8 @@ qt_internal_add_test(tst_qdbusmarshall
|
|||||||
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../"
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../"
|
||||||
SOURCES
|
SOURCES
|
||||||
../tst_qdbusmarshall.cpp
|
../tst_qdbusmarshall.cpp
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
../tst_qdbusmarshall.cpp # undef QT_NO_FOREACH
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
Qt::CorePrivate
|
Qt::CorePrivate
|
||||||
Qt::DBusPrivate
|
Qt::DBusPrivate
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||||||
// Copyright (C) 2016 Intel Corporation.
|
// Copyright (C) 2016 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QtCore/QtCore>
|
#include <QtCore/QtCore>
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QTestEventLoop>
|
#include <QTestEventLoop>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QDomDocument>
|
#include <QDomDocument>
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2017 The Qt Company Ltd.
|
// Copyright (C) 2017 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
#include <QtCore/qcoreapplication.h>
|
#include <QtCore/qcoreapplication.h>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QtCore/qmath.h>
|
#include <QtCore/qmath.h>
|
||||||
#include <QtGui/qquaternion.h>
|
#include <QtGui/qquaternion.h>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <qpainter.h>
|
#include <qpainter.h>
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QtXml/QtXml>
|
#include <QtXml/QtXml>
|
||||||
#include <QtGui/QFontInfo>
|
#include <QtGui/QFontInfo>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
#include <QtEndian>
|
#include <QtEndian>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
#include <qglyphrun.h>
|
#include <qglyphrun.h>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
/*
|
/*
|
||||||
!!!!!! Warning !!!!!
|
!!!!!! Warning !!!!!
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QtCore/QJsonArray>
|
#include <QtCore/QJsonArray>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QtNetwork/QtNetwork>
|
#include <QtNetwork/QtNetwork>
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QTestEventLoop>
|
#include <QTestEventLoop>
|
||||||
|
@ -24,6 +24,8 @@ qt_internal_add_test(tst_qnetworkreply
|
|||||||
../tst_qnetworkreply.cpp
|
../tst_qnetworkreply.cpp
|
||||||
../data/gzip.rcc.cpp
|
../data/gzip.rcc.cpp
|
||||||
../data/zstandard.rcc.cpp
|
../data/zstandard.rcc.cpp
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
../tst_qnetworkreply.cpp # undef QT_NO_FOREACH
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
Qt::CorePrivate
|
Qt::CorePrivate
|
||||||
Qt::NetworkPrivate
|
Qt::NetworkPrivate
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2021 The Qt Company Ltd.
|
// Copyright (C) 2021 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QtNetwork/qtnetworkglobal.h>
|
#include <QtNetwork/qtnetworkglobal.h>
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// Copyright (C) 2016 Intel Corporation.
|
// Copyright (C) 2016 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QSignalSpy>
|
#include <QSignalSpy>
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// Copyright (C) 2016 Intel Corporation.
|
// Copyright (C) 2016 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QtEndian>
|
#include <QtEndian>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QtTest/QTest>
|
#include <QtTest/QTest>
|
||||||
#include <QtTest/QTestEventLoop>
|
#include <QtTest/QTestEventLoop>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <qglobal.h>
|
#include <qglobal.h>
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Copyright (C) 2017 Intel Corporation.
|
// Copyright (C) 2017 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <qglobal.h>
|
#include <qglobal.h>
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// Copyright (C) 2017 Intel Corporation.
|
// Copyright (C) 2017 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QSignalSpy>
|
#include <QSignalSpy>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
#include <QtNetwork/qtnetworkglobal.h>
|
#include <QtNetwork/qtnetworkglobal.h>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2014 Governikus GmbH & Co. KG.
|
// Copyright (C) 2014 Governikus GmbH & Co. KG.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <qsslkey.h>
|
#include <qsslkey.h>
|
||||||
#include <qsslsocket.h>
|
#include <qsslsocket.h>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QtTest/qtesttouch.h>
|
#include <QtTest/qtesttouch.h>
|
||||||
|
@ -22,6 +22,8 @@ qt_internal_add_test(tst_macgui
|
|||||||
SOURCES
|
SOURCES
|
||||||
guitest.cpp guitest.h
|
guitest.cpp guitest.h
|
||||||
tst_macgui.cpp
|
tst_macgui.cpp
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
guitest.cpp # undef QT_NO_FOREACH
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
Qt::CorePrivate
|
Qt::CorePrivate
|
||||||
Qt::WidgetsPrivate
|
Qt::WidgetsPrivate
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "guitest.h"
|
#include "guitest.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QtCore/qglobal.h>
|
#include <QtCore/qglobal.h>
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2014 John Layt <jlayt@kde.org>
|
// Copyright (C) 2014 John Layt <jlayt@kde.org>
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QMimeType>
|
#include <QMimeType>
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
#include <qprinter.h>
|
#include <qprinter.h>
|
||||||
|
@ -15,6 +15,8 @@ qt_internal_add_test(tst_qabstractitemmodeltester
|
|||||||
SOURCES
|
SOURCES
|
||||||
../../other/qabstractitemmodelutils/dynamictreemodel.cpp ../../other/qabstractitemmodelutils/dynamictreemodel.h
|
../../other/qabstractitemmodelutils/dynamictreemodel.cpp ../../other/qabstractitemmodelutils/dynamictreemodel.h
|
||||||
tst_qabstractitemmodeltester.cpp
|
tst_qabstractitemmodeltester.cpp
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
tst_qabstractitemmodeltester.cpp # undef QT_NO_FOREACH
|
||||||
INCLUDE_DIRECTORIES
|
INCLUDE_DIRECTORIES
|
||||||
../../other/qabstractitemmodelutils
|
../../other/qabstractitemmodelutils
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QAbstractItemModelTester>
|
#include <QAbstractItemModelTester>
|
||||||
#include <QtGui/QtGui>
|
#include <QtGui/QtGui>
|
||||||
|
@ -27,6 +27,8 @@ qt_internal_add_test(tst_selftests
|
|||||||
SOURCES
|
SOURCES
|
||||||
tst_selftests.cpp
|
tst_selftests.cpp
|
||||||
catch.cpp
|
catch.cpp
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
tst_selftests.cpp # undef QT_NO_FOREACH
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
Qt::TestPrivate
|
Qt::TestPrivate
|
||||||
TESTDATA ${qmake_expected_files_resource_files}
|
TESTDATA ${qmake_expected_files_resource_files}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QtCore/QCoreApplication>
|
#include <QtCore/QCoreApplication>
|
||||||
#include <QtCore/QStringList>
|
#include <QtCore/QStringList>
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Copyright (C) 2016 Intel Corporation.
|
// Copyright (C) 2016 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QtCore/QCoreApplication>
|
#include <QtCore/QCoreApplication>
|
||||||
|
|
||||||
QT_REQUIRE_CONFIG(process);
|
QT_REQUIRE_CONFIG(process);
|
||||||
|
@ -72,6 +72,8 @@ qt_internal_add_test(tst_moc
|
|||||||
cxx-attributes.h
|
cxx-attributes.h
|
||||||
tst_moc.cpp
|
tst_moc.cpp
|
||||||
${comparison_relevant_moc_list}
|
${comparison_relevant_moc_list}
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
tst_moc.cpp # undef QT_NO_FOREACH
|
||||||
INCLUDE_DIRECTORIES
|
INCLUDE_DIRECTORIES
|
||||||
testproject
|
testproject
|
||||||
testproject/include
|
testproject/include
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Copyright (C) 2020 Olivier Goffart <ogoffart@woboq.com>
|
// Copyright (C) 2020 Olivier Goffart <ogoffart@woboq.com>
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QSignalSpy>
|
#include <QSignalSpy>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -17,6 +17,8 @@ qt_internal_add_test(tst_qmake
|
|||||||
SOURCES
|
SOURCES
|
||||||
testcompiler.cpp testcompiler.h
|
testcompiler.cpp testcompiler.h
|
||||||
tst_qmake.cpp
|
tst_qmake.cpp
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
testcompiler.cpp # undef QT_NO_FOREACH
|
||||||
TESTDATA ${test_data}
|
TESTDATA ${test_data}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "testcompiler.h"
|
#include "testcompiler.h"
|
||||||
|
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
|
@ -24,6 +24,9 @@ qt_internal_add_test(tst_qmakelib
|
|||||||
evaltest.cpp
|
evaltest.cpp
|
||||||
parsertest.cpp
|
parsertest.cpp
|
||||||
tst_qmakelib.cpp tst_qmakelib.h
|
tst_qmakelib.cpp tst_qmakelib.h
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
evaltest.cpp # undef QT_NO_FOREACH
|
||||||
|
parsertest.cpp # undef QT_NO_FOREACH
|
||||||
DEFINES
|
DEFINES
|
||||||
PROEVALUATOR_FULL
|
PROEVALUATOR_FULL
|
||||||
PROEVALUATOR_SETENV
|
PROEVALUATOR_SETENV
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "tst_qmakelib.h"
|
#include "tst_qmakelib.h"
|
||||||
|
|
||||||
#include <proitems.h>
|
#include <proitems.h>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "tst_qmakelib.h"
|
#include "tst_qmakelib.h"
|
||||||
|
|
||||||
#include <proitems.h>
|
#include <proitems.h>
|
||||||
|
@ -17,6 +17,8 @@ qt_internal_add_test(tst_baseline_painting
|
|||||||
../shared/qbaselinetest.cpp ../shared/qbaselinetest.h
|
../shared/qbaselinetest.cpp ../shared/qbaselinetest.h
|
||||||
../shared/paintcommands.cpp ../shared/paintcommands.h
|
../shared/paintcommands.cpp ../shared/paintcommands.h
|
||||||
tst_baseline_painting.cpp
|
tst_baseline_painting.cpp
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
tst_baseline_painting.cpp # undef QT_NO_FOREACH
|
||||||
INCLUDE_DIRECTORIES
|
INCLUDE_DIRECTORIES
|
||||||
../shared
|
../shared
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "paintcommands.h"
|
#include "paintcommands.h"
|
||||||
#include <qbaselinetest.h>
|
#include <qbaselinetest.h>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QDirIterator>
|
#include <QDirIterator>
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@ qt_internal_add_benchmark(tst_bench_qhash
|
|||||||
SOURCES
|
SOURCES
|
||||||
tst_bench_qhash.cpp
|
tst_bench_qhash.cpp
|
||||||
outofline.cpp
|
outofline.cpp
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
tst_bench_qhash.cpp # undef QT_NO_FOREACH
|
||||||
INCLUDE_DIRECTORIES
|
INCLUDE_DIRECTORIES
|
||||||
.
|
.
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Copyright (C) 2016 Intel Corporation.
|
// Copyright (C) 2016 Intel Corporation.
|
||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "tst_bench_qhash.h"
|
#include "tst_bench_qhash.h"
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// 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 WITH Qt-GPL-exception-1.0
|
||||||
// This file contains benchmarks for QRect/QRectF functions.
|
// This file contains benchmarks for QRect/QRectF functions.
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QPainterPath>
|
#include <QPainterPath>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2020 The Qt Company Ltd.
|
// Copyright (C) 2020 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
|
|
||||||
#include <QtCore/qmath.h>
|
#include <QtCore/qmath.h>
|
||||||
|
@ -11,6 +11,8 @@ qt_internal_add_manual_test(Menurama
|
|||||||
main.cpp
|
main.cpp
|
||||||
mainwindow.cpp mainwindow.h mainwindow.ui
|
mainwindow.cpp mainwindow.h mainwindow.ui
|
||||||
menuramaapplication.cpp menuramaapplication.h
|
menuramaapplication.cpp menuramaapplication.h
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
menuramaapplication.cpp # undef QT_NO_FOREACH
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2017 The Qt Company Ltd.
|
// Copyright (C) 2017 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "menuramaapplication.h"
|
#include "menuramaapplication.h"
|
||||||
|
|
||||||
MenuramaApplication::MenuramaApplication(int &argc, char **argv)
|
MenuramaApplication::MenuramaApplication(int &argc, char **argv)
|
||||||
|
@ -15,6 +15,9 @@ qt_internal_add_manual_test(dialogs
|
|||||||
messageboxpanel.cpp messageboxpanel.h
|
messageboxpanel.cpp messageboxpanel.h
|
||||||
utils.cpp utils.h
|
utils.cpp utils.h
|
||||||
wizardpanel.cpp wizardpanel.h
|
wizardpanel.cpp wizardpanel.h
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
filedialogpanel.cpp # undef QT_NO_FOREACH
|
||||||
|
utils.cpp # undef QT_NO_FOREACH
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
@ -31,6 +34,8 @@ qt_internal_extend_target(dialogs CONDITION TARGET Qt::PrintSupport
|
|||||||
qt_internal_extend_target(dialogs CONDITION NOT (QT_FEATURE_printer EQUAL FALSE)
|
qt_internal_extend_target(dialogs CONDITION NOT (QT_FEATURE_printer EQUAL FALSE)
|
||||||
SOURCES
|
SOURCES
|
||||||
printdialogpanel.cpp printdialogpanel.h printdialogpanel.ui
|
printdialogpanel.cpp printdialogpanel.h printdialogpanel.ui
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
printdialogpanel.cpp # undef QT_NO_FOREACH
|
||||||
ENABLE_AUTOGEN_TOOLS
|
ENABLE_AUTOGEN_TOOLS
|
||||||
uic
|
uic
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2021 The Qt Company Ltd.
|
// Copyright (C) 2021 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "filedialogpanel.h"
|
#include "filedialogpanel.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#ifndef QT_NO_PRINTER
|
#ifndef QT_NO_PRINTER
|
||||||
|
|
||||||
#include "printdialogpanel.h"
|
#include "printdialogpanel.h"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
|
@ -13,6 +13,8 @@ qt_internal_add_manual_test(embeddedintoforeignwindow
|
|||||||
../diaglib/textdump.cpp ../diaglib/textdump.h
|
../diaglib/textdump.cpp ../diaglib/textdump.h
|
||||||
itemwindow.cpp itemwindow.h
|
itemwindow.cpp itemwindow.h
|
||||||
main.cpp
|
main.cpp
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
itemwindow.cpp # undef QT_NO_FOREACH
|
||||||
DEFINES
|
DEFINES
|
||||||
QT_DIAG_LIB
|
QT_DIAG_LIB
|
||||||
INCLUDE_DIRECTORIES
|
INCLUDE_DIRECTORIES
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2017 The Qt Company Ltd.
|
// Copyright (C) 2017 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "itemwindow.h"
|
#include "itemwindow.h"
|
||||||
|
|
||||||
#include <QtGui/QPainter>
|
#include <QtGui/QPainter>
|
||||||
|
@ -10,6 +10,8 @@ qt_internal_add_manual_test(scrollarea
|
|||||||
SOURCES
|
SOURCES
|
||||||
main.cpp
|
main.cpp
|
||||||
mousepangesturerecognizer.cpp mousepangesturerecognizer.h
|
mousepangesturerecognizer.cpp mousepangesturerecognizer.h
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
main.cpp # undef QT_NO_FOREACH
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QSlider>
|
#include <QSlider>
|
||||||
#include <QScrollArea>
|
#include <QScrollArea>
|
||||||
|
@ -11,6 +11,8 @@ qt_internal_add_manual_test(lance
|
|||||||
interactivewidget.cpp interactivewidget.h
|
interactivewidget.cpp interactivewidget.h
|
||||||
main.cpp
|
main.cpp
|
||||||
widgets.h
|
widgets.h
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
interactivewidget.cpp # undef QT_NO_FOREACH
|
||||||
INCLUDE_DIRECTORIES
|
INCLUDE_DIRECTORIES
|
||||||
.
|
.
|
||||||
../../baseline/shared
|
../../baseline/shared
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "interactivewidget.h"
|
#include "interactivewidget.h"
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@ qt_internal_add_manual_test(qgraphicsitemgroup
|
|||||||
customitem.cpp customitem.h
|
customitem.cpp customitem.h
|
||||||
main.cpp
|
main.cpp
|
||||||
widget.cpp widget.h widget.ui
|
widget.cpp widget.h widget.ui
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
widget.cpp # undef QT_NO_FOREACH
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
// 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 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
|
||||||
|
|
||||||
#include "widget.h"
|
#include "widget.h"
|
||||||
#include "ui_widget.h"
|
#include "ui_widget.h"
|
||||||
#include <QGraphicsOpacityEffect>
|
#include <QGraphicsOpacityEffect>
|
||||||
|
@ -17,6 +17,8 @@ qt_internal_add_manual_test(qlocale
|
|||||||
miscellaneous.cpp miscellaneous.h
|
miscellaneous.cpp miscellaneous.h
|
||||||
numberformats.cpp numberformats.h
|
numberformats.cpp numberformats.h
|
||||||
window.cpp window.h
|
window.cpp window.h
|
||||||
|
NO_PCH_SOURCES
|
||||||
|
languages.cpp # undef QT_NO_FOREACH
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user