summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-09-09 07:57:56 -0700
committerThiago Macieira <thiago.macieira@intel.com>2020-09-09 08:03:58 -0700
commit1f956b2919345d1d9e44e23ebd8b86c0a772c994 (patch)
tree28498b55dac56ce2b51685b038d2251d081aab2f /src/corelib/tools
parentc07eff7d9477a5a098c76fb2107d9f902c2999ac (diff)
qcontainerfwd.h: add forward declarations for Q{String,ByteArray}List
On Qt6, QStringList is exactly a QList<QString>, not just derived from it, so people will need to remove their "class QString;". For compatibility, let's have qcontainerfwd.h forward-declare those two. Change-Id: I2fc68c725ba649218bd9fffd16332574d149c576 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r--src/corelib/tools/qcontainerfwd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/tools/qcontainerfwd.h b/src/corelib/tools/qcontainerfwd.h
index 00a8c85b66..f369a1f17f 100644
--- a/src/corelib/tools/qcontainerfwd.h
+++ b/src/corelib/tools/qcontainerfwd.h
@@ -60,6 +60,8 @@ template <class T> class QSet;
template <class T> class QStack;
template<class T, int Prealloc = 256> class QVarLengthArray;
template <class T> class QVector;
+using QByteArrayList = QList<QByteArray>;
+class QStringList;
QT_END_NAMESPACE