diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-24 13:19:55 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-28 08:16:59 +0200 |
commit | de52ad0a0f31654ff86e77fc4545335e9651d3f2 (patch) | |
tree | 89b3f238d642ede5517d35101886622c10bdb672 | |
parent | f26d4def67898eefcd1b54f2ffb7d7bf019de48d (diff) |
Fix documentation for QStringList
Explicitly declare members in qdoc runs that are otherwise inherited
from QListSpecialMethods.
Note: Due to a bug in syncqt, those members need to be added in a
separate #ifdef Q_QDOC section.
Change-Id: I96850f3665359de4f97be1b8d10f8052ba252fab
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | src/corelib/text/qstringlist.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/corelib/text/qstringlist.h b/src/corelib/text/qstringlist.h index 3ed6a2f499..2894fa78cf 100644 --- a/src/corelib/text/qstringlist.h +++ b/src/corelib/text/qstringlist.h @@ -85,6 +85,21 @@ class QStringList : public QList<QString> template <> struct QListSpecialMethods<QString> #endif { +#ifdef Q_QDOC +public: + using QList<QString>::QList; + QStringList(const QString &str); + QStringList(const QList<QString> &other); + QStringList(QList<QString> &&other); + + QStringList &operator=(const QList<QString> &other); + QStringList &operator=(QList<QString> &&other); + QStringList operator+(const QStringList &other) const; + QStringList &operator<<(const QString &str); + QStringList &operator<<(const QStringList &other); + QStringList &operator<<(const QList<QString> &other); +private: +#endif inline QStringList *self() { return static_cast<QStringList *>(this); } inline const QStringList *self() const |