Avoid QtCore import, which results in ALL Qt core headers being imported

This commit is contained in:
Nyall Dawson 2023-12-20 14:14:35 +10:00 committed by Jakub Melka
parent 4a679efe25
commit c17165b088
23 changed files with 29 additions and 10 deletions

View File

@ -24,8 +24,6 @@
#include "pdfoutline.h"
#include "pdfaction.h"
#include <QtCore>
#include <array>
#include <vector>
#include <utility>

View File

@ -20,7 +20,10 @@
#include "pdfexecutionpolicy.h"
#include "pdfdbgheap.h"
#include <QBuffer>
#include <QCoreApplication>
#include <QDir>
#include <QFile>
#include <QReadWriteLock>
#ifdef PDF4QT_COMPILER_CLANG

View File

@ -23,7 +23,6 @@
#include "pdfcatalog.h"
#include "pdfsecurityhandler.h"
#include <QtCore>
#include <QColor>
#include <QTransform>
#include <QDateTime>

View File

@ -23,6 +23,7 @@
#include "pdfannotation.h"
class QPdfWriter;
class QBuffer;
namespace pdf
{

View File

@ -24,8 +24,8 @@
#include "pdfprogress.h"
#include "pdfxreftable.h"
#include <QtCore>
#include <QIODevice>
#include <QMutex>
namespace pdf
{

View File

@ -21,6 +21,7 @@
#include "pdfparser.h"
#include "pdfdbgheap.h"
#include <QBuffer>
#include <QFile>
#include <QSaveFile>

View File

@ -30,6 +30,8 @@
#include <freetype/ftoutln.h>
#include <freetype/t1tables.h>
#include <QFile>
#include <QIODevice>
#include <QMutex>
#include <QReadWriteLock>
#include <QPainterPath>

View File

@ -23,6 +23,7 @@
#include "pdfobject.h"
#include <QFont>
#include <QMutex>
#include <QTransform>
#include <QSharedPointer>

View File

@ -23,6 +23,8 @@
#include "pdfutils.h"
#include "pdfdbgheap.h"
#include <QIODevice>
#include <stack>
#include <iterator>
#include <type_traits>

View File

@ -18,8 +18,8 @@
#ifndef PDFGLOBAL_H
#define PDFGLOBAL_H
#include <QtCore>
#include <QtGlobal>
#include <QCoreApplication>
#include <limits>
#include <tuple>

View File

@ -19,6 +19,7 @@
#include "pdfdbgheap.h"
#include <QCoreApplication>
#include <QDir>
namespace pdf
{

View File

@ -20,8 +20,6 @@
#include "pdfobject.h"
#include <QtCore>
#include <set>
#include <vector>
#include <atomic>

View File

@ -21,6 +21,7 @@
#include "pdfobject.h"
#include <QRectF>
#include <QDateTime>
#include <set>
#include <optional>

View File

@ -23,6 +23,7 @@
#include <QFile>
#include <QThread>
#include <QMetaEnum>
#include <cctype>
#include <memory>

View File

@ -23,7 +23,6 @@
#include "pdfobject.h"
#include "pdfflatmap.h"
#include <QtCore>
#include <QVariant>
#include <QByteArray>

View File

@ -24,6 +24,7 @@
#include "pdfconstants.h"
#include "pdfdbgheap.h"
#include <QMutex>
#include <QPainter>
#include <execution>

View File

@ -24,6 +24,8 @@
#include <QByteArray>
#include <QSharedPointer>
class QRandomGenerator;
#include <map>
#include <functional>

View File

@ -40,10 +40,13 @@
#include <openssl/ts.h>
#include <openssl/tserr.h>
#include <QDir>
#include <QLockFile>
#include <QMutex>
#include <QMutexLocker>
#include <QDataStream>
#include <QFileInfo>
#include <QStandardPaths>
#include <array>
#ifdef Q_OS_UNIX

View File

@ -20,7 +20,11 @@
#include "pdfexecutionpolicy.h"
#include "pdfdbgheap.h"
#include <QIODevice>
#include <QMutexLocker>
#include <QPainter>
#include <QRegularExpressionMatch>
#include <QRegularExpressionMatchIterator>
#include <execution>

View File

@ -25,6 +25,8 @@
#include <QDataStream>
#include <QPainterPath>
class QMutex;
#include <set>
#include <compare>

View File

@ -21,6 +21,7 @@
#include "pdffont.h"
#include "pdfdbgheap.h"
#include <QBuffer>
#include <QDomElement>
#include <QDomDocument>
#include <QStringList>

View File

@ -22,6 +22,7 @@
#include "pdfstreamfilters.h"
#include "pdfdbgheap.h"
#include <QIODevice>
#include <stack>
namespace pdf

View File

@ -21,8 +21,6 @@
#include "pdfglobal.h"
#include "pdfobject.h"
#include <QtCore>
#include <vector>
namespace pdf