Use QtCore/qcontainerfwd.h header for forward declaration containers.

This commit is contained in:
Roman Telezhynskyi 2023-02-14 14:52:48 +02:00
parent cca8a687a2
commit 04d2a1c631
13 changed files with 17 additions and 33 deletions

View File

@ -28,6 +28,9 @@
#ifndef UTILS_H
#define UTILS_H
#include <QtGlobal>
#include <QtCore/qcontainerfwd.h>
class QMimeType;
class QString;
class QMimeType;

View File

@ -40,6 +40,7 @@
#include <QLocale>
#include <QLoggingCategory>
#include <functional>
#include <QtCore/qcontainerfwd.h>
#include "../ifcdef.h"
#include "../vmisc/def.h"
@ -51,9 +52,6 @@
class QDomElement;
class QDomNode;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
template <typename T> class QVector;
#endif
template <typename T> class QFutureWatcher;
Q_DECLARE_LOGGING_CATEGORY(vXML)

View File

@ -34,6 +34,7 @@
#include <memory>
#include <string>
#include <QLocale>
#include <QtCore/qcontainerfwd.h>
#include "qmuparser_global.h"
#include "qmuparserbytecode.h"
@ -43,8 +44,6 @@
#include "qmuparsertoken.h"
#include "qmuparsertokenreader.h"
template <class T> class QStack;
namespace qmu
{
/**

View File

@ -31,8 +31,7 @@
#include <QtGlobal>
#include <ciso646>
template <class Key, class T> class QMap;
#include <QtCore/qcontainerfwd.h>
enum class VarMeasurement : quint8 { English=0, Metric=1 };

View File

@ -4,6 +4,7 @@
#include <string>
#include <QtGlobal>
#include "../drw_base.h"
#include <QtCore/qcontainerfwd.h>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include "../vmisc/vtextcodec.h"
@ -16,8 +17,6 @@
class QStringList;
#endif
template <class Key, class T> class QMap;
class DRW_TextCodec
{
public:

View File

@ -35,6 +35,7 @@
#include <QtGlobal>
#include <atomic>
#include <QGraphicsPathItem>
#include <QtCore/qcontainerfwd.h>
#include "../vmisc/defglobal.h"
@ -45,11 +46,6 @@ class QGraphicsRectItem;
class QRectF;
class QGraphicsItem;
class QMutex;
template <typename T> class QList;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
template <typename T> class QVector;
#endif
class VLayoutPaper
{

View File

@ -32,6 +32,7 @@
#include <QCoreApplication>
#include <QRect>
#include <QtGlobal>
#include <QtCore/qcontainerfwd.h>
#include "../vmisc/def.h"
#include "../vlayout/vtextmanager.h"
@ -40,11 +41,6 @@ class QGraphicsItem;
class QPrinter;
struct VWatermarkData;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
template <class T> class QVector;
#endif
struct PosterData
{
PosterData()

View File

@ -28,6 +28,9 @@
#ifndef LITERALS_H
#define LITERALS_H
#include <QtGlobal>
#include <QtCore/qcontainerfwd.h>
class QString;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
class QStringList;

View File

@ -35,11 +35,9 @@
#include <QString>
#include <QTemporaryFile>
#include <QTextStream>
#include <QtCore/qcontainerfwd.h>
class QPointF;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
template <class T> class QVector;
#endif
class VSAPoint;
class VRawSAPoint;

View File

@ -34,6 +34,7 @@
#include <QVariant>
#include <Qt>
#include <QtGlobal>
#include <QtCore/qcontainerfwd.h>
#include "vpropertyexplorer_global.h"
#if QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
@ -44,8 +45,6 @@
#include "vpropertydef.h"
template <typename T> class QList;
namespace VPE
{

View File

@ -25,13 +25,11 @@
#include <QMap>
#include <QString>
#include <QtGlobal>
#include <QtCore/qcontainerfwd.h>
#include "vproperty.h"
#include "vpropertyexplorer_global.h"
template <class Key, class T> class QMap;
template <typename T> class QList;
namespace VPE
{

View File

@ -37,16 +37,13 @@
#include <QJsonArray>
#include <qtestcase.h>
#include <typeinfo>
#include <QtCore/qcontainerfwd.h>
#include "../vgeometry/vpointf.h"
#include "../vlayout/vsapoint.h"
#include "../vlayout/vrawsapoint.h"
#include "../ifc/exception/vexception.h"
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
template <class T> class QVector;
#endif
#include <ciso646>
#ifdef __GNUC__

View File

@ -44,6 +44,7 @@
#include <Qt>
#include <QtDebug>
#include <QtMath>
#include <QtCore/qcontainerfwd.h>
#include "../vpatterndb/calculator.h"
#include "../vpatterndb/vtranslatevars.h"
@ -55,8 +56,6 @@
#include "../vwidgets/scalesceneitems.h"
#include "../vwidgets/global.h"
template <class K, class V> class QHash;
QT_WARNING_PUSH
QT_WARNING_DISABLE_CLANG("-Wmissing-prototypes")
QT_WARNING_DISABLE_INTEL(1418)