summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-09-03 15:04:16 +0200
committerLars Knoll <lars.knoll@qt.io>2020-09-12 23:37:15 +0200
commit652bd1efca34b7e114836f79c33b5e4a248faaee (patch)
tree23eea549c4a282626ec5d891011e76482b8cc4be /src/gui
parentead02871cc97fa7dae956b1cd649a91de432dc73 (diff)
Make QStringList an alias to QList<QString>
Fix our API, so that QStringList and QList<QString> 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<QString>. Change-Id: Ib8afbf5b6d9df4d0d47051252233506f62335fa3 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/accessible/qaccessibleplugin.h1
-rw-r--r--src/gui/image/qimage.h1
-rw-r--r--src/gui/image/qimagereader.h1
-rw-r--r--src/gui/text/qfont.h1
-rw-r--r--src/gui/text/qfontdatabase.h1
-rw-r--r--src/gui/util/qdesktopservices.h1
6 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/accessible/qaccessibleplugin.h b/src/gui/accessible/qaccessibleplugin.h
index 68e6a839d8..04169fdeac 100644
--- a/src/gui/accessible/qaccessibleplugin.h
+++ b/src/gui/accessible/qaccessibleplugin.h
@@ -49,7 +49,6 @@ QT_BEGIN_NAMESPACE
#ifndef QT_NO_ACCESSIBILITY
-class QStringList;
class QAccessibleInterface;
#define QAccessibleFactoryInterface_iid "org.qt-project.Qt.QAccessibleFactoryInterface"
diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h
index 0866984dec..2ce9d96e6a 100644
--- a/src/gui/image/qimage.h
+++ b/src/gui/image/qimage.h
@@ -61,7 +61,6 @@ QT_BEGIN_NAMESPACE
class QColorSpace;
class QColorTransform;
class QIODevice;
-class QStringList;
class QTransform;
class QVariant;
diff --git a/src/gui/image/qimagereader.h b/src/gui/image/qimagereader.h
index 4d418bd7d0..23c8a916d2 100644
--- a/src/gui/image/qimagereader.h
+++ b/src/gui/image/qimagereader.h
@@ -53,7 +53,6 @@ class QColor;
class QIODevice;
class QRect;
class QSize;
-class QStringList;
class QImageReaderPrivate;
class Q_GUI_EXPORT QImageReader
diff --git a/src/gui/text/qfont.h b/src/gui/text/qfont.h
index 65d126374e..4079e48dda 100644
--- a/src/gui/text/qfont.h
+++ b/src/gui/text/qfont.h
@@ -50,7 +50,6 @@ QT_BEGIN_NAMESPACE
class QFontPrivate; /* don't touch */
-class QStringList;
class QVariant;
class Q_GUI_EXPORT QFont
diff --git a/src/gui/text/qfontdatabase.h b/src/gui/text/qfontdatabase.h
index eacce5a2c4..67f06b8485 100644
--- a/src/gui/text/qfontdatabase.h
+++ b/src/gui/text/qfontdatabase.h
@@ -48,7 +48,6 @@
QT_BEGIN_NAMESPACE
-class QStringList;
struct QFontDef;
class QFontEngine;
diff --git a/src/gui/util/qdesktopservices.h b/src/gui/util/qdesktopservices.h
index 6e2836e26a..658b601532 100644
--- a/src/gui/util/qdesktopservices.h
+++ b/src/gui/util/qdesktopservices.h
@@ -48,7 +48,6 @@ QT_BEGIN_NAMESPACE
#ifndef QT_NO_DESKTOPSERVICES
-class QStringList;
class QUrl;
class QObject;