Tests: Reduce the number of module includes
They are an unnecessary hit on build time. Rewrite the tests using the standard Qt conventions. Change-Id: Iac47e62c58b1805c3b4a0ac4f4b3db206c66cc65 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 6ddf74716d7b2fe0df5dd9c0172f9ecf936d5c5d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1696091c5b
commit
cb0ac3d471
@ -1,8 +1,8 @@
|
||||
// Copyright (C) 2022 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QFile>
|
||||
#include <QtTest>
|
||||
#include <QtTest/qtest.h>
|
||||
#include <QtCore/qfile.h>
|
||||
|
||||
class TestAddResourcePrefix : public QObject
|
||||
{
|
||||
|
@ -1,10 +1,8 @@
|
||||
// Copyright (C) 2012 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Stephen Kelly <stephen.kelly@kdab.com>
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtConcurrent>
|
||||
#include <QtConcurrent/QtConcurrent>
|
||||
#include <QtConcurrent/QtConcurrentRun>
|
||||
#include <QtConcurrentRun>
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtConcurrent/qtconcurrentrun.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
@ -1,7 +1,8 @@
|
||||
// Copyright (C) 2022 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
#include <QtTest>
|
||||
#include <QMainWindow>
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
#include <QtWidgets/qmainwindow.h>
|
||||
|
||||
class test_widgets_app_deployment : public QObject
|
||||
{
|
||||
|
@ -2,18 +2,19 @@
|
||||
// Copyright (C) 2016 Intel Corporation.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <qurl.h>
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtConcurrent/qtconcurrentrun.h>
|
||||
|
||||
#include <QtCore/qcoreapplication.h>
|
||||
#include <QtCore/qdebug.h>
|
||||
#include <QtCore/qdiriterator.h>
|
||||
#include <QtCore/qfileinfo.h>
|
||||
#include <QtCore/qmap.h>
|
||||
#include <QtCore/qthreadpool.h>
|
||||
#include <QtCore/qurl.h>
|
||||
|
||||
#include <QTest>
|
||||
#include <QtTest/private/qcomparisontesthelper_p.h>
|
||||
#include <QDirIterator>
|
||||
|
||||
#include <qcoreapplication.h>
|
||||
|
||||
#include <qfileinfo.h>
|
||||
#include <qmap.h>
|
||||
|
||||
#include <QtTest/private/qemulationdetector_p.h>
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
@ -4245,9 +4246,6 @@ void tst_QUrl::testThreadingHelper()
|
||||
}
|
||||
}
|
||||
|
||||
#include <QThreadPool>
|
||||
#include <QtConcurrent>
|
||||
|
||||
void tst_QUrl::testThreading()
|
||||
{
|
||||
enum { Count = 100 };
|
||||
|
@ -1,11 +1,20 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
#include <QElapsedTimer>
|
||||
#include <QSignalSpy>
|
||||
|
||||
#include <QtConcurrent>
|
||||
#include <QtTest/qtest.h>
|
||||
#include <QtTest/qsignalspy.h>
|
||||
|
||||
#include <QtConcurrent/qtconcurrentfilter.h>
|
||||
#include <QtConcurrent/qtconcurrentmap.h>
|
||||
#include <QtConcurrent/qtconcurrentrun.h>
|
||||
|
||||
#include <QtCore/qcoreapplication.h>
|
||||
#include <QtCore/qdebug.h>
|
||||
#include <QtCore/qelapsedtimer.h>
|
||||
#include <QtCore/qfuturesynchronizer.h>
|
||||
#include <QtCore/qfuturewatcher.h>
|
||||
#include <QtCore/qset.h>
|
||||
|
||||
#include <private/qfutureinterface_p.h>
|
||||
|
||||
using namespace QtConcurrent;
|
||||
|
@ -1,8 +1,14 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
#include <QTest>
|
||||
#include <QtGui>
|
||||
#include <QtCore>
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtGui/qcolorspace.h>
|
||||
#include <QtGui/qimagereader.h>
|
||||
#include <QtGui/qimagewriter.h>
|
||||
|
||||
#include <QtCore/qbuffer.h>
|
||||
#include <QtCore/qfile.h>
|
||||
|
||||
class tst_QIcoImageFormat : public QObject
|
||||
{
|
||||
|
@ -1,8 +1,10 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtGui>
|
||||
#include <QEvent>
|
||||
#include <QtGui/qguiapplication.h>
|
||||
#include <QtGui/qevent.h>
|
||||
|
||||
#include <QtCore/qfile.h>
|
||||
|
||||
struct MyApplication : public QGuiApplication
|
||||
{
|
||||
|
@ -2,8 +2,9 @@
|
||||
// Copyright (C) 2016 David Faure <david.faure@kdab.com>
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtTest/QtTest>
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtGui/qguiapplication.h>
|
||||
|
||||
#include <QtGui/private/qtx11extras_p.h>
|
||||
|
||||
|
@ -1,9 +1,12 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtNetwork/qtcpserver.h>
|
||||
#include <QtNetwork/qtcpsocket.h>
|
||||
#include <QtNetwork/qhostaddress.h>
|
||||
|
||||
#include <QtCore/qcoreapplication.h>
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtNetwork>
|
||||
#if defined(Q_OS_WIN) && defined(Q_CC_MSVC)
|
||||
# include <crtdbg.h>
|
||||
#endif
|
||||
|
@ -1,6 +1,10 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
#include <QtNetwork>
|
||||
|
||||
#include <QtNetwork/qudpsocket.h>
|
||||
|
||||
#include <QtCore/qcoreevent.h>
|
||||
#include <QtCore/qcoreapplication.h>
|
||||
|
||||
class ClientServer : public QUdpSocket
|
||||
{
|
||||
|
@ -1,6 +1,10 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
#include <QtNetwork>
|
||||
|
||||
#include <QtNetwork/qudpsocket.h>
|
||||
#include <QtNetwork/qhostaddress.h>
|
||||
|
||||
#include <QtCore/qcoreapplication.h>
|
||||
|
||||
class Server : public QObject
|
||||
{
|
||||
|
@ -1,12 +1,11 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtNetwork>
|
||||
#include <QTest>
|
||||
|
||||
#include <QNetworkProxy>
|
||||
#include <QAuthenticator>
|
||||
#include <QtNetwork/qsslsocket.h>
|
||||
#include <QtNetwork/qnetworkproxy.h>
|
||||
#include <QtNetwork/qauthenticator.h>
|
||||
|
||||
#ifdef QT_BUILD_INTERNAL
|
||||
# include "private/qhostinfo_p.h"
|
||||
|
@ -1,12 +1,11 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtNetwork>
|
||||
#include <QTest>
|
||||
|
||||
#include <QNetworkProxy>
|
||||
#include <QAuthenticator>
|
||||
#include <QtNetwork/qsslsocket.h>
|
||||
#include <QtNetwork/qnetworkproxy.h>
|
||||
#include <QtNetwork/qauthenticator.h>
|
||||
|
||||
#include "private/qhostinfo_p.h"
|
||||
|
||||
|
@ -1,17 +1,16 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
#include <QtTest/qtesteventloop.h>
|
||||
|
||||
#include <QTest>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtCore>
|
||||
#include <QTestEventLoop>
|
||||
#include <QtWidgets/qprogressdialog.h>
|
||||
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
#include <QtNetwork/QNetworkRequest>
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
#include <qdebug.h>
|
||||
#include <QtNetwork/qnetworkaccessmanager.h>
|
||||
#include <QtNetwork/qnetworkrequest.h>
|
||||
#include <QtNetwork/qnetworkreply.h>
|
||||
|
||||
#include <QtCore/qdebug.h>
|
||||
|
||||
#include "../../network-settings.h"
|
||||
|
||||
|
@ -1,9 +1,14 @@
|
||||
// Copyright (C) 2022 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtCore>
|
||||
#include <QTest>
|
||||
#include <QtCore/qobject.h>
|
||||
#include <QtCore/qpointer.h>
|
||||
#include <QtCore/qsemaphore.h>
|
||||
#include <QtCore/qthread.h>
|
||||
#include <QtCore/qtimer.h>
|
||||
#include <QtCore/qvarlengtharray.h>
|
||||
|
||||
#include <QtTest/private/qemulationdetector_p.h>
|
||||
|
||||
|
@ -1,9 +1,10 @@
|
||||
// Copyright (C) 2019 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QTest>
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtCore/qobject.h>
|
||||
#include <QtCore/qmetaobject.h>
|
||||
|
||||
#include <qpa/qplatforminputcontextfactory_p.h>
|
||||
#include <qpa/qplatforminputcontext.h>
|
||||
|
@ -5,25 +5,22 @@
|
||||
#ifndef TST_DATABASES_H
|
||||
#define TST_DATABASES_H
|
||||
|
||||
#include <QSqlDatabase>
|
||||
#include <QSqlDriver>
|
||||
#include <QSqlError>
|
||||
#include <QSqlQuery>
|
||||
#include <QSqlRecord>
|
||||
#include <QRegularExpression>
|
||||
#include <QRegularExpressionMatch>
|
||||
#include <QDir>
|
||||
#include <QScopedPointer>
|
||||
#include <QVariant>
|
||||
#include <QDebug>
|
||||
#include <QSqlTableModel>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonObject>
|
||||
#include <QJsonDocument>
|
||||
#include <QSysInfo>
|
||||
#include <QVersionNumber>
|
||||
#include <QtSql/private/qsqldriver_p.h>
|
||||
#include <QTest>
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtSql/qsqldatabase.h>
|
||||
#include <QtSql/qsqldriver.h>
|
||||
#include <QtSql/qsqlerror.h>
|
||||
#include <QtSql/qsqlquery.h>
|
||||
#include <QtSql/qsqlrecord.h>
|
||||
#include <QtSql/qsqltablemodel.h>
|
||||
|
||||
#include <QtCore/qjsonarray.h>
|
||||
#include <QtCore/qjsondocument.h>
|
||||
#include <QtCore/qjsonobject.h>
|
||||
#include <QtCore/qregularexpression.h>
|
||||
#include <QtCore/qscopedpointer.h>
|
||||
#include <QtCore/qtemporarydir.h>
|
||||
#include <QtCore/qversionnumber.h>
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
|
||||
|
@ -2,15 +2,14 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
|
||||
#include <QTest>
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtCore/qatomic.h>
|
||||
#include <QtCore/qthread.h>
|
||||
#include <QtCore/qdebug.h>
|
||||
|
||||
#include "../qsqldatabase/tst_databases.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtSql>
|
||||
#include "qdebug.h"
|
||||
|
||||
QString qtest;
|
||||
// set this define if Oracle is built with threading support
|
||||
//#define QOCI_THREADED
|
||||
|
@ -1,21 +1,20 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
#include <QtTest/qsignalspy.h>
|
||||
|
||||
#include <QTest>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QSignalSpy>
|
||||
#include <QtWidgets/qtableview.h>
|
||||
|
||||
#include <qsqldriver.h>
|
||||
#include <qsqldatabase.h>
|
||||
#include <qsqlerror.h>
|
||||
#include <qsqlfield.h>
|
||||
#include <qsqlquery.h>
|
||||
#include <qsqlrecord.h>
|
||||
#include <QtSql/qsqldriver.h>
|
||||
#include <QtSql/qsqldatabase.h>
|
||||
#include <QtSql/qsqlerror.h>
|
||||
#include <QtSql/qsqlfield.h>
|
||||
#include <QtSql/qsqlquery.h>
|
||||
#include <QtSql/qsqlrecord.h>
|
||||
#include <QtSql/qsqlquerymodel.h>
|
||||
|
||||
#include <qsqlquerymodel.h>
|
||||
#include <qsortfilterproxymodel.h>
|
||||
#include <QtCore/qsortfilterproxymodel.h>
|
||||
|
||||
#include "../../kernel/qsqldatabase/tst_databases.h"
|
||||
|
||||
|
@ -1,14 +1,20 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
|
||||
#include <QTest>
|
||||
#include "../../kernel/qsqldatabase/tst_databases.h"
|
||||
#include <QtSql>
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
#include <QtTest/qsignalspy.h>
|
||||
|
||||
#include <QtSql/qsqltablemodel.h>
|
||||
#include <QtSql/qsqldriver.h>
|
||||
#include <QtSql/qsqlfield.h>
|
||||
|
||||
#include <QtCore/qthread.h>
|
||||
#include <QtCore/qelapsedtimer.h>
|
||||
#include <QtCore/qvariant.h>
|
||||
|
||||
#include <QtSql/private/qsqltablemodel_p.h>
|
||||
#include <QThread>
|
||||
#include <QElapsedTimer>
|
||||
#include <QSignalSpy>
|
||||
|
||||
// In order to catch when the warning message occurs, indicating that the database belongs to another
|
||||
// thread, we have to install our own message handler. To ensure that the test reporting still happens
|
||||
|
@ -1,7 +1,9 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtNetwork>
|
||||
#include <QtNetwork/qsslsocket.h>
|
||||
|
||||
#include <QtCore/qcoreapplication.h>
|
||||
|
||||
int main(int argc, char ** argv)
|
||||
{
|
||||
|
@ -1,8 +1,12 @@
|
||||
// Copyright (C) 2020 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtTest>
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtCore/qloggingcategory.h>
|
||||
#include <QtCore/qlibraryinfo.h>
|
||||
#include <QtCore/qprocess.h>
|
||||
#include <QtCore/qstandardpaths.h>
|
||||
|
||||
Q_LOGGING_CATEGORY(lcTests, "qt.tools.tests")
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
// Copyright (C) 2023 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QTest>
|
||||
#include <QtTest>
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QLibraryInfo>
|
||||
#include <QLatin1StringView>
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
#include <QProcess>
|
||||
#include <QCryptographicHash>
|
||||
#include <QtCore/qcryptographichash.h>
|
||||
#include <QtCore/qdir.h>
|
||||
#include <QtCore/qfileinfo.h>
|
||||
#include <QtCore/qlatin1stringview.h>
|
||||
#include <QtCore/qlibraryinfo.h>
|
||||
#include <QtCore/qprocess.h>
|
||||
#include <QtCore/qstandardpaths.h>
|
||||
|
||||
#include <array>
|
||||
|
||||
|
@ -1,11 +1,14 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtGui>
|
||||
#include <QTest>
|
||||
#include <QTest>
|
||||
#include <QMetaType>
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtWidgets/qgraphicsanchorlayout.h>
|
||||
#include <QtWidgets/qgraphicswidget.h>
|
||||
|
||||
#include <QtCore/qmetatype.h>
|
||||
#include <QtCore/qlibraryinfo.h>
|
||||
|
||||
#include <private/qgraphicsanchorlayout_p.h>
|
||||
|
||||
#define TEST_COMPLEX_CASES
|
||||
|
@ -2,9 +2,18 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
|
||||
#include <QTest>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtWidgets/qgraphicslinearlayout.h>
|
||||
#include <QtWidgets/qgraphicsview.h>
|
||||
#include <QtWidgets/qgraphicswidget.h>
|
||||
#include <QtWidgets/qstyleoption.h>
|
||||
|
||||
#include <QtCore/qmap.h>
|
||||
#include <QtCore/qrect.h>
|
||||
#include <QtCore/qset.h>
|
||||
#include <QtCore/qtimeline.h>
|
||||
|
||||
#include <math.h>
|
||||
|
||||
class tst_QGraphicsLayout : public QObject
|
||||
|
@ -1,10 +1,19 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QTest>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtWidgets/qboxlayout.h>
|
||||
#include <QtWidgets/qdial.h>
|
||||
#include <QtWidgets/qdialog.h>
|
||||
#include <QtWidgets/qgroupbox.h>
|
||||
#include <QtWidgets/qlabel.h>
|
||||
#include <QtWidgets/qlineedit.h>
|
||||
#include <QtWidgets/qproxystyle.h>
|
||||
#include <QtWidgets/qpushbutton.h>
|
||||
#include <QtWidgets/qstylefactory.h>
|
||||
#include <QtWidgets/qstyleoption.h>
|
||||
#include <QtWidgets/qwidget.h>
|
||||
|
||||
#include <QtTest/private/qtesthelpers_p.h>
|
||||
|
||||
|
@ -1,20 +1,18 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QTest>
|
||||
#include <qlayout.h>
|
||||
#include <qapplication.h>
|
||||
#include <qwidget.h>
|
||||
#include <qproxystyle.h>
|
||||
#include <qsizepolicy.h>
|
||||
//#include <QtGui>
|
||||
#include <QtWidgets/qapplication.h>
|
||||
#include <QtWidgets/qlabel.h>
|
||||
#include <QtWidgets/qlayout.h>
|
||||
#include <QtWidgets/qlineedit.h>
|
||||
#include <QtWidgets/qproxystyle.h>
|
||||
#include <QtWidgets/qradiobutton.h>
|
||||
#include <QtWidgets/qsizepolicy.h>
|
||||
#include <QtWidgets/qstylefactory.h>
|
||||
|
||||
#include <QtWidgets/QLabel>
|
||||
#include <QtWidgets/QLineEdit>
|
||||
#include <QtWidgets/QRadioButton>
|
||||
#include <QStyleFactory>
|
||||
#include <QSharedPointer>
|
||||
#include <QtCore/qsharedpointer.h>
|
||||
|
||||
#include <QtTest/private/qtesthelpers_p.h>
|
||||
|
||||
|
@ -1,13 +1,27 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QTest>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtDebug>
|
||||
#include <QList>
|
||||
#include <QPointer>
|
||||
#include <QSignalSpy>
|
||||
#include <QtTest/qtest.h>
|
||||
#include <QtTest/qsignalspy.h>
|
||||
|
||||
#include <QtWidgets/qboxlayout.h>
|
||||
#include <QtWidgets/qcombobox.h>
|
||||
#include <QtWidgets/qcompleter.h>
|
||||
#include <QtWidgets/qgraphicsview.h>
|
||||
#include <QtWidgets/qlineedit.h>
|
||||
#include <QtWidgets/qlistview.h>
|
||||
#include <QtWidgets/qtextedit.h>
|
||||
#include <QtWidgets/qtreewidget.h>
|
||||
|
||||
#include <QtGui/qfilesystemmodel.h>
|
||||
#include <QtGui/qstandarditemmodel.h>
|
||||
|
||||
#include <QtCore/qabstractproxymodel.h>
|
||||
#include <QtCore/qdebug.h>
|
||||
#include <QtCore/qlist.h>
|
||||
#include <QtCore/qpointer.h>
|
||||
#include <QtCore/qstandardpaths.h>
|
||||
#include <QtCore/qstringlistmodel.h>
|
||||
|
||||
#include <QtTest/private/qtesthelpers_p.h>
|
||||
|
||||
|
@ -1,9 +1,20 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QTest>
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtWidgets/qapplication.h>
|
||||
#include <QtWidgets/qscroller.h>
|
||||
#include <QtWidgets/qwidget.h>
|
||||
|
||||
#include <QtGui/qevent.h>
|
||||
#include <QtGui/qpointingdevice.h>
|
||||
#include <QtGui/qstylehints.h>
|
||||
|
||||
#include <QtCore/qeasingcurve.h>
|
||||
#include <QtCore/qpoint.h>
|
||||
#include <QtCore/qrect.h>
|
||||
|
||||
#include <QtGui/private/qevent_p.h>
|
||||
#include <QtGui/private/qeventpoint_p.h>
|
||||
#include <qpa/qwindowsysteminterface.h>
|
||||
|
@ -2,27 +2,27 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
|
||||
#include <QTest>
|
||||
#include <QSignalSpy>
|
||||
#include <QMdiSubWindow>
|
||||
#include <QMdiArea>
|
||||
#include <QtTest/qtest.h>
|
||||
#include <QtTest/qsignalspy.h>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QMainWindow>
|
||||
#include <QMenuBar>
|
||||
#include <QPushButton>
|
||||
#include <QStyle>
|
||||
#include <QStyleOption>
|
||||
#include <QVBoxLayout>
|
||||
#include <QLineEdit>
|
||||
#include <QDockWidget>
|
||||
#include <QScrollBar>
|
||||
#include <QTextEdit>
|
||||
#include <QtWidgets/qapplication.h>
|
||||
#include <QtWidgets/qboxlayout.h>
|
||||
#include <QtWidgets/qdockwidget.h>
|
||||
#include <QtWidgets/qlineedit.h>
|
||||
#include <QtWidgets/qmainwindow.h>
|
||||
#include <QtWidgets/qmdiarea.h>
|
||||
#include <QtWidgets/qmdisubwindow.h>
|
||||
#include <QtWidgets/qmenubar.h>
|
||||
#include <QtWidgets/qpushbutton.h>
|
||||
#include <QtWidgets/qscrollbar.h>
|
||||
#include <QtWidgets/qstyle.h>
|
||||
#include <QtWidgets/qstyleoption.h>
|
||||
#include <QtWidgets/qtextedit.h>
|
||||
|
||||
#include <QtGui/qstylehints.h>
|
||||
#ifndef QT_NO_OPENGL
|
||||
#include <QtOpenGL>
|
||||
#include <QOpenGLContext>
|
||||
# include <QtGui/qopenglcontext.h>
|
||||
#endif
|
||||
#include <QStyleHints>
|
||||
|
||||
#include <QtWidgets/private/qapplication_p.h>
|
||||
|
||||
|
@ -1,22 +1,27 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <QtTest/qtest.h>
|
||||
|
||||
#include <QtXml/qdom.h>
|
||||
|
||||
#include <QtCore/qbuffer.h>
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qcoreapplication.h>
|
||||
#include <QtCore/qdebug.h>
|
||||
#include <QtCore/qfile.h>
|
||||
#include <QtCore/qlist.h>
|
||||
#include <QtCore/qregularexpression.h>
|
||||
#include <QtCore/qscopeguard.h>
|
||||
#include <QtCore/qtemporaryfile.h>
|
||||
#include <QtCore/qtextstream.h>
|
||||
#include <QtCore/qvariant.h>
|
||||
#include <QtCore/qxmlstream.h>
|
||||
|
||||
#include <QBuffer>
|
||||
#include <QByteArray>
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
#include <QFile>
|
||||
#include <QList>
|
||||
#include <QRegularExpression>
|
||||
#include <QScopeGuard>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <QtXml>
|
||||
#include <QVariant>
|
||||
#include <cmath>
|
||||
#include <QtXml/private/qdom_p.h>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
QT_REQUIRE_CONFIG(dom);
|
||||
QT_FORWARD_DECLARE_CLASS(QDomDocument)
|
||||
QT_FORWARD_DECLARE_CLASS(QDomNode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user