Skip to content

Commit

Permalink
Doc: Fix various documentation warnings
Browse files Browse the repository at this point in the history
- QList iterators are now nested classes inside QList.
- Drop reference to Qt OpenGL Widgets landing page, there is no such
  page.
- Fix typos and linking issues.

Fixes: QTBUG-86295
Pick-to: 6.0
Change-Id: I964843deb81aa55ff8ddb9a1c2b004cb72e68de9
Reviewed-by: Topi Reiniö <[email protected]>
Reviewed-by: Paul Wicking <[email protected]>
  • Loading branch information
toreinio committed Nov 30, 2020
1 parent 3789ca6 commit 99abdd1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/corelib/kernel/qobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4224,7 +4224,7 @@ QDebug operator<<(QDebug dbg, const QObject *o)
This macro associates extra information to the class, which is available
using QObject::metaObject(). Qt makes only limited use of this feature in
\l{Qt D-Bus} and \l{Qt QML module}{Qt QML}.
\l{Qt D-Bus} and \l{Qt QML} modules.
The extra information takes the form of a \a Name string and a \a Value
literal string.
Expand Down
14 changes: 6 additions & 8 deletions src/corelib/tools/qlist.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -1381,10 +1381,9 @@
\overload
*/

/*! \typedef QList::iterator

The QList::iterator typedef provides an STL-style non-const
iterator for QList and QStack.
/*! \class QList::iterator
\inmodule QtCore
\brief Provides an STL-style non-const iterator for QList and QStack.

QList provides both \l{STL-style iterators} and \l{Java-style
iterators}.
Expand All @@ -1403,10 +1402,9 @@
\sa QList::begin(), QList::end(), QList::const_iterator, QMutableListIterator
*/

/*! \typedef QList::const_iterator

The QList::const_iterator typedef provides an STL-style const
iterator for QList and QStack.
/*! \class QList::const_iterator
\inmodule QtCore
\brief Provides an STL-style const iterator for QList and QStack.

QList provides both \l{STL-style iterators} and \l{Java-style
iterators}.
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/tools/qvarlengtharray.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@
This function requires the value type to have an implementation
of \c operator==().

\sa operator!=()
\sa {operator!=(const QVarLengthArray<T, Prealloc1> &left, const QVarLengthArray<T, Prealloc2> &right)}{operator!=()}
*/

/*! \fn template<typename T, qsizetype Prealloc1, qsizetype Prealloc2> bool operator!=(const QVarLengthArray<T, Prealloc1> &left, const QVarLengthArray<T, Prealloc2> &right)
Expand All @@ -790,7 +790,7 @@
This function requires the value type to have an implementation
of \c operator==().

\sa operator==()
\sa {operator==(const QVarLengthArray<T, Prealloc1> &left, const QVarLengthArray<T, Prealloc2> &right)}{operator==()}
*/

/*! \fn template<typename T, qsizetype Prealloc1, qsizetype Prealloc2> bool operator<(const QVarLengthArray<T,Prealloc1> &lhs, const QVarLengthArray<T,Prealloc2> &rhs)
Expand Down
3 changes: 0 additions & 3 deletions src/opengl/doc/src/qtopengl-module.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,4 @@
\title Qt OpenGL Widgets C++ Classes
\qtcmakepackage OpenGLWidgets
\qtvariable openglwidgets

The \l{Qt OpenGL Widgets} page contains information about how to use the
module.
*/
2 changes: 1 addition & 1 deletion src/widgets/doc/src/qtwidgets.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@

\brief The Qt Widgets module extends Qt GUI with C++ widget functionality.

The \l{Qt Widget} page contains information about how to use the module.
The \l{Qt Widgets} page contains information about how to use the module.
*/

0 comments on commit 99abdd1

Please sign in to comment.