Fix qdoc link warnings after moving a few examples to manual tests

Change-Id: I81a6e9d52e858c3f733d4c527c70408772813b56
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 71f156fff07f6c876941096134f6ee4ac90a9309)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2023-06-26 23:46:37 +02:00 committed by Qt Cherry-pick Bot
parent 2d83c9d026
commit cd54a5e837
16 changed files with 24 additions and 24 deletions

View File

@ -116,8 +116,7 @@
\section1 The MainWindow Class
The \c MainWindow class is a standard QMainWindow subclass, as
found in many of the other examples (e.g.,
\l{mainwindows/application}{Application}). Here, we'll
found in many of the other examples. Here, we'll
concentrate on the parts of the code that are related to plugins.
\snippet tools/plugandpaint/app/mainwindow.cpp 4

View File

@ -297,7 +297,7 @@
callbacks, you'd have to find five different names and keep track
of the types yourself.
\sa QLCDNumber, QObject::connect(), {Digital Clock Example},
\sa QLCDNumber, QObject::connect()
{Tetrix Example}
\section1 Signals And Slots With Default Arguments

View File

@ -1120,7 +1120,7 @@ void QItemSelectionModelPrivate::_q_modelDestroyed()
\l{QItemSelectionModel::hasSelection()}{hasSelection}, and
\l{QItemSelectionModel::currentIndex()}{currentIndex} are meta-object properties.
\sa {Model/View Programming}, QAbstractItemModel, {Chart Example}
\sa {Model/View Programming}, QAbstractItemModel
*/
/*!

View File

@ -4,3 +4,11 @@
//! [0]
statusBar()->addWidget(new MyReadWriteIndication);
//! [0]
//! [1]
statusBar()->showMessage(tr("Ready"));
//! [1]
//! [2]
statusBar()->showMessage(tr("Ready"), 2000);
//! [2]

View File

@ -2311,10 +2311,8 @@
\section1 Related Examples
\list
\li \l{itemviews/dirview}{Dir View}
\li \l{itemviews/spinboxdelegate}{Spin Box Delegate}
\li \l{itemviews/pixelator}{Pixelator}
\li \l{itemviews/simpletreemodel}{Simple Tree Model}
\li \l{itemviews/chart}{Chart}
\endlist
*/

View File

@ -263,8 +263,8 @@
\section1 How to Write A Custom Layout Manager
An alternative to manual layout is to write your own layout manager by
subclassing QLayout. The \l{layouts/borderlayout}{Border Layout} and
\l{layouts/flowlayout}{Flow Layout} examples show how to do this.
subclassing QLayout. The
\l{layouts/flowlayout}{Flow Layout} example shows how to do this.
Here we present an example in detail. The \c CardLayout class is inspired
by the Java layout manager of the same name. It lays out the items (widgets

View File

@ -318,7 +318,7 @@ void QAbstractItemViewPrivate::_q_delegateSizeHintChanged(const QModelIndex &ind
\l{QWidget::update()}{update()} as all painting operations take place on the
viewport.
\sa {View Classes}, {Model/View Programming}, QAbstractItemModel, {Chart Example}
\sa {View Classes}, {Model/View Programming}, QAbstractItemModel
*/
/*!

View File

@ -1188,7 +1188,7 @@ int QTableViewPrivate::heightHintForIndex(const QModelIndex &index, int hint, QS
operations between x-coordinates and column indexes.
\sa QTableWidget, {View Classes}, QAbstractItemModel, QAbstractItemView,
{Chart Example}, {Pixelator Example}, {Table Model Example}
{Pixelator Example}, {Table Model Example}
*/
/*!

View File

@ -124,8 +124,7 @@ QT_BEGIN_NAMESPACE
that can be taken for views that are intended to display items with equal heights
is to set the \l uniformRowHeights property to true.
\sa QListView, QTreeWidget, {View Classes}, QAbstractItemModel, QAbstractItemView,
{Dir View Example}
\sa QListView, QTreeWidget, {View Classes}, QAbstractItemModel, QAbstractItemView
*/

View File

@ -57,14 +57,13 @@ static int menuBarHeightForWidth(QWidget *menubar, int w)
resized to zero size if there is too little space. To support
children whose heights depend on their widths, implement
hasHeightForWidth() and heightForWidth(). See the
\l{layouts/borderlayout}{Border Layout} and
\l{layouts/flowlayout}{Flow Layout} examples for
\l{layouts/flowlayout}{Flow Layout} example for
more information about implementing custom layout managers.
Geometry management stops when the layout manager is deleted.
\sa QLayoutItem, {Layout Management}, {Basic Layouts Example},
{Border Layout Example}, {Flow Layout Example}
{Flow Layout Example}
*/

View File

@ -221,9 +221,6 @@ private:
The scroller uses the global QAbstractAnimation timer to generate its QScrollEvents. This
can be changed with QScrollerProperties::FrameRate on a per-QScroller basis.
The \l {Dir View Example} shows one way to use a QScroller with a QTreeView.
An example in the \c scroller examples directory also demonstrates QScroller.
Even though this kinetic scroller has a large number of settings available via
QScrollerProperties, we recommend that you leave them all at their default, platform optimized
values. Before changing them you can experiment with the \c plot example in

View File

@ -1286,7 +1286,7 @@ void QDockWidgetPrivate::setWindowState(bool floating, bool unplug, const QRect
possible to drag the dock widget when undocking. Starting the drag will undock
the dock widget, but a second drag will be needed to move the dock widget itself.
\sa QMainWindow, {Dock Widgets Example}
\sa QMainWindow
*/
/*!

View File

@ -381,7 +381,7 @@ void QFontComboBoxPrivate::_q_currentChanged(const QString &text)
\image windowsvista-fontcombobox.png Screenshot of QFontComboBox on Windows Vista
\sa QComboBox, QFont, QFontInfo, QFontMetrics, QFontDatabase, {Character Map Example}
\sa QComboBox, QFont, QFontInfo, QFontMetrics, QFontDatabase
*/
/*!

View File

@ -69,7 +69,7 @@ public:
Incidentally, QLCDNumber is the very oldest part of Qt, tracing
its roots back to a BASIC program on the \l{Sinclair Spectrum}{Sinclair Spectrum}.
\sa QLabel, QFrame, {Digital Clock Example}, {Tetrix Example}
\sa QLabel, QFrame, {Tetrix Example}
*/
/*!

View File

@ -281,7 +281,7 @@ void QMainWindowPrivate::init()
of the toolbars and dock widgets that are stored.
\sa QMenuBar, QToolBar, QStatusBar, QDockWidget,
{Qt Widgets - Application Example}, {Dock Widgets Example},
{Qt Widgets - Application Example},
{MDI Example}, {Menus Example}
*/

View File

@ -151,12 +151,12 @@ QRect QStatusBarPrivate::messageRect() const
Use the showMessage() slot to display a \e temporary message:
\snippet mainwindows/dockwidgets/mainwindow.cpp 8
\snippet code/src_gui_widgets_qstatusbar.cpp 1
To remove a temporary message, use the clearMessage() slot, or set
a time limit when calling showMessage(). For example:
\snippet mainwindows/dockwidgets/mainwindow.cpp 3
\snippet code/src_gui_widgets_qstatusbar.cpp 2
Use the currentMessage() function to retrieve the temporary
message currently shown. The QStatusBar class also provide the