Remove <QtCore> include

This commit is contained in:
Jakub Melka 2023-12-21 11:02:55 +01:00
parent c79a029c2f
commit e5e25a71a3
27 changed files with 37 additions and 17 deletions

View File

@ -23,8 +23,6 @@
#include "pdfdrawspacecontroller.h" #include "pdfdrawspacecontroller.h"
#include "pdfdocumentdrawinterface.h" #include "pdfdocumentdrawinterface.h"
#include <QtCore>
namespace pdf namespace pdf
{ {
class PDFDocumentBuilder; class PDFDocumentBuilder;

View File

@ -16,6 +16,7 @@
# along with PDF4QT. If not, see <https://www.gnu.org/licenses/>. # along with PDF4QT. If not, see <https://www.gnu.org/licenses/>.
add_library(Pdf4QtLibCore SHARED add_library(Pdf4QtLibCore SHARED
sources/pdfglobal.h
sources/pdfaction.cpp sources/pdfaction.cpp
sources/pdfaction.h sources/pdfaction.h
sources/pdfalgorithmlcs.cpp sources/pdfalgorithmlcs.cpp

View File

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

View File

@ -20,6 +20,9 @@
#include "pdfexecutionpolicy.h" #include "pdfexecutionpolicy.h"
#include "pdfdbgheap.h" #include "pdfdbgheap.h"
#include <QDir>
#include <QFile>
#include <QBuffer>
#include <QCoreApplication> #include <QCoreApplication>
#include <QReadWriteLock> #include <QReadWriteLock>

View File

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

View File

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

View File

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

View File

@ -22,6 +22,7 @@
#include "pdfdbgheap.h" #include "pdfdbgheap.h"
#include <QFile> #include <QFile>
#include <QBuffer>
#include <QSaveFile> #include <QSaveFile>
namespace pdf namespace pdf

View File

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

View File

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

View File

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

View File

@ -19,7 +19,9 @@
#define PDFGLOBAL_H #define PDFGLOBAL_H
#include <QtCore> #include <QtCore>
#include <QtGlobal> #include <QtSystemDetection>
#include <QtCompilerDetection>
#include <QCoreApplication>
#include <limits> #include <limits>
#include <tuple> #include <tuple>

View File

@ -18,6 +18,8 @@
#include "pdficontheme.h" #include "pdficontheme.h"
#include "pdfdbgheap.h" #include "pdfdbgheap.h"
#include <QDir>
#include <QFile>
#include <QCoreApplication> #include <QCoreApplication>
namespace pdf namespace pdf

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -27,6 +27,8 @@
#include <map> #include <map>
#include <functional> #include <functional>
class QRandomGenerator;
namespace pdf namespace pdf
{ {
class PDFObjectFactory; class PDFObjectFactory;

View File

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

View File

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

View File

@ -28,6 +28,8 @@
#include <set> #include <set>
#include <compare> #include <compare>
class QMutex;
namespace pdf namespace pdf
{ {
class PDFTextLayout; class PDFTextLayout;

View File

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

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#ifndef PDFCOMPILER_H #ifndef PDFCOMPILER_H
#define PDFCOMPILER_H #define PDFCOMPILER_H
#include "pdfglobal.h"
#include "pdfwidgetsglobal.h" #include "pdfwidgetsglobal.h"
#include "pdfrenderer.h" #include "pdfrenderer.h"
#include "pdfpainter.h" #include "pdfpainter.h"

View File

@ -18,8 +18,7 @@
#ifndef PDFWIDGETSGLOBAL_H #ifndef PDFWIDGETSGLOBAL_H
#define PDFWIDGETSGLOBAL_H #define PDFWIDGETSGLOBAL_H
#include <QtCore> #include <QtCompilerDetection>
#include <QtGlobal>
#include <pdf4qtlibwidgets_export.h> #include <pdf4qtlibwidgets_export.h>
@ -31,5 +30,4 @@
#endif #endif
#endif #endif
#endif // PDFWIDGETSGLOBAL_H #endif // PDFWIDGETSGLOBAL_H