Get rid of QList forward declarations
Include qcontainerfwd.h instead where required. This prepares for unifying QList and QVector. Change-Id: I6c85e2bdd44fb41aedd884b0d551f682760df5b5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
52d8865657
commit
bfed3cf419
@ -156,7 +156,6 @@ inline uint qHash(const QPersistentModelIndex &index, uint seed) noexcept
|
||||
Q_CORE_EXPORT QDebug operator<<(QDebug, const QPersistentModelIndex &);
|
||||
#endif
|
||||
|
||||
template<typename T> class QList;
|
||||
typedef QList<QModelIndex> QModelIndexList;
|
||||
|
||||
class QMimeData;
|
||||
|
@ -46,9 +46,6 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
template <typename T> class QList;
|
||||
|
||||
#define Q_METAMETHOD_INVOKE_MAX_ARGS 10
|
||||
|
||||
class Q_CORE_EXPORT QMetaMethod
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include <QtCore/qscopedpointer.h>
|
||||
#include <QtCore/qiodevice.h>
|
||||
#include <QtCore/qpair.h>
|
||||
#include <QtCore/qcontainerfwd.h>
|
||||
|
||||
#ifdef Status
|
||||
#error qdatastream.h must be included before any header file that defines Status
|
||||
@ -54,12 +55,6 @@ class qfloat16;
|
||||
class QByteArray;
|
||||
class QIODevice;
|
||||
|
||||
template <typename T> class QList;
|
||||
template <typename T> class QVector;
|
||||
template <typename T> class QSet;
|
||||
template <class Key, class T> class QHash;
|
||||
template <class Key, class T> class QMap;
|
||||
|
||||
#if !defined(QT_NO_DATASTREAM) || defined(QT_BOOTSTRAPPED)
|
||||
class QDataStreamPrivate;
|
||||
namespace QtPrivate {
|
||||
|
@ -48,7 +48,6 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QDebug;
|
||||
class QStringList;
|
||||
template <typename T> class QList;
|
||||
typedef QList<QVariant> QVariantList;
|
||||
|
||||
class Q_CORE_EXPORT QJsonArray
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include <QtCore/qrefcount.h>
|
||||
#include <QtCore/qnamespace.h>
|
||||
#include <QtCore/qarraydata.h>
|
||||
#include <QtCore/qcontainerfwd.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -112,7 +113,6 @@ Q_CORE_EXPORT quint16 qChecksum(const char *s, uint len, Qt::ChecksumType standa
|
||||
class QByteRef;
|
||||
class QString;
|
||||
class QDataStream;
|
||||
template <typename T> class QList;
|
||||
|
||||
typedef QArrayData QByteArrayData;
|
||||
|
||||
|
@ -68,7 +68,6 @@ class QMatrix;
|
||||
class QStringList;
|
||||
class QTransform;
|
||||
class QVariant;
|
||||
template <class T> class QList;
|
||||
template <class T> class QVector;
|
||||
|
||||
struct QImageData;
|
||||
|
@ -53,8 +53,6 @@ QT_REQUIRE_CONFIG(standarditemmodel);
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
template <class T> class QList;
|
||||
|
||||
class QStandardItemModel;
|
||||
|
||||
class QStandardItemPrivate;
|
||||
|
@ -854,7 +854,6 @@ private:
|
||||
qint64 m_numericId;
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QPointingDeviceUniqueId, Q_MOVABLE_TYPE);
|
||||
template <> class QList<QPointingDeviceUniqueId> {}; // to prevent instantiation: use QVector instead
|
||||
|
||||
Q_GUI_EXPORT bool operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs) noexcept;
|
||||
inline bool operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs) noexcept
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include <QtGui/qtguiglobal.h>
|
||||
#include <QtCore/qobjectdefs.h>
|
||||
#include <QtCore/qnamespace.h>
|
||||
#include <QtCore/qcontainerfwd.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
@ -80,7 +81,6 @@ class QString;
|
||||
class QByteArray;
|
||||
class QApplication;
|
||||
|
||||
template<typename T> class QList;
|
||||
typedef QList<QWidget *> QWidgetList;
|
||||
typedef QList<QWindow *> QWindowList;
|
||||
|
||||
|
@ -49,7 +49,6 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
class QStringList;
|
||||
template <class T> class QList;
|
||||
struct QFontDef;
|
||||
class QFontEngine;
|
||||
|
||||
|
@ -48,8 +48,6 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
template <typename T> class QList;
|
||||
struct QTextOptionPrivate;
|
||||
|
||||
class Q_GUI_EXPORT QTextOption
|
||||
|
@ -52,7 +52,6 @@ QT_BEGIN_NAMESPACE
|
||||
class QIODevice;
|
||||
class QDateTime;
|
||||
class QUrl;
|
||||
template<class T> class QList;
|
||||
|
||||
class QNetworkCacheMetaDataPrivate;
|
||||
class Q_NETWORK_EXPORT QNetworkCacheMetaData
|
||||
|
@ -66,7 +66,6 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
template<typename T> class QList;
|
||||
template <typename T> class QVector;
|
||||
|
||||
class Q_AUTOTEST_EXPORT QHstsCache
|
||||
|
@ -56,7 +56,6 @@ class QIODevice;
|
||||
class QAbstractNetworkCache;
|
||||
class QAuthenticator;
|
||||
class QByteArray;
|
||||
template<typename T> class QList;
|
||||
class QNetworkCookie;
|
||||
class QNetworkCookieJar;
|
||||
class QNetworkReply;
|
||||
|
@ -50,7 +50,6 @@
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QDeadlineTimer;
|
||||
template<typename T> class QList;
|
||||
|
||||
class QNetworkAddressEntryPrivate;
|
||||
class Q_NETWORK_EXPORT QNetworkAddressEntry
|
||||
|
@ -66,7 +66,6 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
template<typename T> class QList;
|
||||
class QSslCertificate;
|
||||
class QSslCipher;
|
||||
class QSslKey;
|
||||
|
@ -54,7 +54,6 @@ QT_REQUIRE_CONFIG(graphicsview);
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
template<typename T> class QList;
|
||||
class QFocusEvent;
|
||||
class QFont;
|
||||
class QFontMetrics;
|
||||
|
@ -67,7 +67,6 @@ QT_BEGIN_NAMESPACE
|
||||
class QGraphicsSceneIndexPrivate;
|
||||
class QPointF;
|
||||
class QRectF;
|
||||
template<typename T> class QList;
|
||||
|
||||
typedef bool (*QGraphicsSceneIndexIntersector)(const QGraphicsItem *item, const QRectF &exposeRect, Qt::ItemSelectionMode mode,
|
||||
const QTransform &deviceTransform, const void *data);
|
||||
|
@ -58,7 +58,6 @@ class QDesktopWidget;
|
||||
class QStyle;
|
||||
class QEventLoop;
|
||||
class QIcon;
|
||||
template <typename T> class QList;
|
||||
class QLocale;
|
||||
class QPlatformNativeInterface;
|
||||
|
||||
|
@ -50,7 +50,6 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QSplitterPrivate;
|
||||
class QTextStream;
|
||||
template <typename T> class QList;
|
||||
|
||||
class QSplitterHandle;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user