summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlist.h
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2020-10-12 15:26:50 +0200
committerAndrei Golubev <andrei.golubev@qt.io>2020-10-20 19:22:12 +0200
commitbf73495a66375b63edfcde4353b7a01869b3f11f (patch)
tree9d49fc9a027d5cd251aa7ab8ec04f69f37b294b9 /src/corelib/tools/qlist.h
parent8ba59441fc62c567b1e8dadce5f6e044caa67e49 (diff)
Fix QDoc warnings for QList/QVector
Task-number: QTBUG-86553 Change-Id: Iac944c78640bfcfb6ee137c0ef3dd89387700b4c Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/corelib/tools/qlist.h')
-rw-r--r--src/corelib/tools/qlist.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h
index e9fb664da1..34d67c7c92 100644
--- a/src/corelib/tools/qlist.h
+++ b/src/corelib/tools/qlist.h
@@ -74,6 +74,10 @@ public:
template <> struct QListSpecialMethods<QByteArray>;
template <> struct QListSpecialMethods<QString>;
+#ifdef Q_QDOC // define QVector for QDoc
+template<typename T> class QVector : public QList<T> {};
+#endif
+
template <typename T>
class QList
#ifndef Q_QDOC
@@ -173,6 +177,12 @@ public:
// compiler-generated special member functions are fine!
+#ifdef Q_QDOC
+ // extra missing ones:
+ bool operator==(const QList<T> &other) const;
+ bool operator!=(const QList<T> &other) const;
+#endif
+
void swap(QList<T> &other) noexcept { qSwap(d, other.d); }
template <typename U>