From 652bd1efca34b7e114836f79c33b5e4a248faaee Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 3 Sep 2020 15:04:16 +0200 Subject: Make QStringList an alias to QList Fix our API, so that QStringList and QList are the same thing. This required a bit of refactoring in QList and moving the indexOf(), lastIndexOf() and contains() method into QListSpecialMethods. In addition, we need to ensure that the QStringList(const QString&) constructor is still available for compatibility with Qt 5. Once those two are done, all methods in QStringList can be moved into QListSpecialMethods. Change-Id: Ib8afbf5b6d9df4d0d47051252233506f62335fa3 Reviewed-by: Andrei Golubev Reviewed-by: Thiago Macieira --- src/corelib/tools/qcontainerfwd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/tools/qcontainerfwd.h') diff --git a/src/corelib/tools/qcontainerfwd.h b/src/corelib/tools/qcontainerfwd.h index 069be4ef10..46c2801b00 100644 --- a/src/corelib/tools/qcontainerfwd.h +++ b/src/corelib/tools/qcontainerfwd.h @@ -61,7 +61,7 @@ template class QStack; template class QVarLengthArray; template class QList; template using QVector = QList; -class QStringList; +using QStringList = QList; using QByteArrayList = QList; class QMetaType; class QVariant; -- cgit v1.2.3