Move to separate headers

Hopefully this can speed up compilation times.
https://doc.qt.io/qt-6/qtglobal.html#details

PR #19430.
This commit is contained in:
Chocobo1
2023-08-11 13:47:55 +08:00
committed by GitHub
parent 9fa48a375d
commit 31fe327763
52 changed files with 71 additions and 51 deletions

View File

@@ -28,7 +28,7 @@
#pragma once
#include <QtGlobal>
#include <QtClassHelperMacros>
#include "interfaces/iapplication.h"

View File

@@ -28,7 +28,6 @@
#pragma once
#include <QtGlobal>
#include <QCoreApplication>
#include "base/pathfwd.h"

View File

@@ -28,7 +28,7 @@
#pragma once
#include <QtGlobal>
#include <QtTypes>
namespace BitTorrent
{

View File

@@ -32,7 +32,6 @@
#include <libtorrent/info_hash.hpp>
#endif
#include <QtGlobal>
#include <QMetaType>
#include "base/digest32.h"

View File

@@ -28,7 +28,7 @@
#pragma once
#include <QtGlobal>
#include <QtTypes>
#include <QHostAddress>
class QString;

View File

@@ -28,7 +28,7 @@
#pragma once
#include <QtGlobal>
#include <QtTypes>
namespace BitTorrent
{

View File

@@ -33,7 +33,7 @@
#include <boost/circular_buffer.hpp>
#endif
#include <QtGlobal>
#include <QtTypes>
template<typename T>
struct Sample

View File

@@ -29,8 +29,8 @@
#pragma once
#include <QtGlobal>
#include <QtContainerFwd>
#include <QtTypes>
#include <QMetaType>
#include <QString>

View File

@@ -34,7 +34,7 @@
#include <libtorrent/entry.hpp>
#include <QtGlobal>
#include <QtTypes>
#include <QHash>
#include <QObject>
#include <QSet>

View File

@@ -31,7 +31,6 @@
#include <libtorrent/socket.hpp>
#include <QtContainerFwd>
#include <QtGlobal>
#include <QHash>
#include <QMap>
#include <QString>

View File

@@ -30,7 +30,6 @@
#include <libtorrent/sha1_hash.hpp>
#include <QtGlobal>
#include <QByteArray>
#include <QHash>
#include <QSharedData>

View File

@@ -30,7 +30,7 @@
#include <type_traits>
#include <QtGlobal>
#include <QtProcessorDetection>
#include <QString>

View File

@@ -28,7 +28,7 @@
#pragma once
#include <QtGlobal>
#include <QtAssert>
// Interval is defined via [first;last]
template <typename Index>

View File

@@ -30,7 +30,7 @@
#pragma once
#include <QtGlobal>
#include <QtSystemDetection>
#include <QMetaObject>
class QString;

View File

@@ -29,7 +29,7 @@
#pragma once
#include <QtGlobal>
#include <QtTypes>
#include <QHash>
#include <QNetworkProxy>
#include <QObject>

View File

@@ -28,7 +28,7 @@
#pragma once
#include <QtGlobal>
#include <QtTypes>
#include <QCoreApplication>
#include <QDateTime>
#include <QHash>

View File

@@ -31,7 +31,6 @@
#include <filesystem>
#include <QtGlobal>
#include <QMetaType>
#include <QString>
@@ -39,6 +38,8 @@
#include "base/interfaces/istringable.h"
class QStringView;
class Path final : public IStringable
{
public:

View File

@@ -30,7 +30,7 @@
#pragma once
#include <QtContainerFwd>
#include <QtGlobal>
#include <QtSystemDetection>
#include <QObject>
#include "base/pathfwd.h"

View File

@@ -31,7 +31,7 @@
#include <chrono>
#include <QtGlobal>
#include <QtAssert>
#include <QDir>
#include <QDirIterator>
#include <QFile>

View File

@@ -29,7 +29,7 @@
#pragma once
#include <Qt>
#include <QtGlobal>
#include <QtSystemDetection>
#if !defined(Q_OS_WIN) && (!defined(Q_OS_UNIX) || defined(Q_OS_MACOS) || defined(QT_FEATURE_icu))
#define QBT_USE_QCOLLATOR

View File

@@ -31,7 +31,7 @@
#include <vector>
#include <QtGlobal>
#include <QtAssert>
#include <QByteArray>
#ifndef ZLIB_CONST

View File

@@ -28,7 +28,7 @@
#pragma once
#include <QtGlobal>
#include <QtSystemDetection>
#ifdef Q_OS_WIN
#include <Windows.h>

View File

@@ -30,7 +30,7 @@
#include <random>
#include <QtGlobal>
#include <QtSystemDetection>
#ifdef Q_OS_WIN
#include <Windows.h>