diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2020-09-09 07:57:56 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2020-09-09 08:03:58 -0700 |
commit | 1f956b2919345d1d9e44e23ebd8b86c0a772c994 (patch) | |
tree | 28498b55dac56ce2b51685b038d2251d081aab2f /src/corelib/tools | |
parent | c07eff7d9477a5a098c76fb2107d9f902c2999ac (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.h | 2 |
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 |