diff options
Diffstat (limited to 'src/corelib/tools/qlist.h')
-rw-r--r-- | src/corelib/tools/qlist.h | 10 |
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> |