Doc: Fix auto-links to deprecated functions

Change-Id: Id4456eef3440734add2d804d186966e253335b7c
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
David Boddie 2025-05-23 17:09:17 +02:00
parent 6854ea6336
commit 475c951d69
4 changed files with 5 additions and 6 deletions

View File

@ -171,7 +171,7 @@
The QComboBox::itemData() function returns the data as a QVariant, The QComboBox::itemData() function returns the data as a QVariant,
so we need to cast the data to \c RenderArea::Shape. If there is so we need to cast the data to \c RenderArea::Shape. If there is
no data for the given role, the function returns no data for the given role, the function returns
QVariant::Invalid. QMetaType::UnknownType.
In the end we call the \c RenderArea::setShape() slot to update In the end we call the \c RenderArea::setShape() slot to update
the \c RenderArea widget. the \c RenderArea widget.

View File

@ -2214,7 +2214,7 @@ QList<QGraphicsItem *> QGraphicsView::items() const
This function is most commonly called from within mouse event handlers in This function is most commonly called from within mouse event handlers in
a subclass in QGraphicsView. \a pos is in untransformed viewport a subclass in QGraphicsView. \a pos is in untransformed viewport
coordinates, just like QMouseEvent::pos(). coordinates, just like QMouseEvent::position().
\snippet code/src_gui_graphicsview_qgraphicsview.cpp 5 \snippet code/src_gui_graphicsview_qgraphicsview.cpp 5

View File

@ -238,8 +238,7 @@ void QApplicationPrivate::createEventDispatcher()
palette(), palette(),
setPalette(), setPalette(),
font(), font(),
setFont(), setFont().
fontMetrics().
\row \row
\li Event handling \li Event handling

View File

@ -9496,14 +9496,14 @@ void QWidget::changeEvent(QEvent * event)
tracking is switched on, mouse move events occur even if no mouse tracking is switched on, mouse move events occur even if no mouse
button is pressed. button is pressed.
QMouseEvent::pos() reports the position of the mouse cursor, QMouseEvent::position() reports the position of the mouse cursor,
relative to this widget. For press and release events, the relative to this widget. For press and release events, the
position is usually the same as the position of the last mouse position is usually the same as the position of the last mouse
move event, but it might be different if the user's hand shakes. move event, but it might be different if the user's hand shakes.
This is a feature of the underlying window system, not Qt. This is a feature of the underlying window system, not Qt.
If you want to show a tooltip immediately, while the mouse is If you want to show a tooltip immediately, while the mouse is
moving (e.g., to get the mouse coordinates with QMouseEvent::pos() moving (e.g., to get the mouse coordinates with QMouseEvent::position()
and show them as a tooltip), you must first enable mouse tracking and show them as a tooltip), you must first enable mouse tracking
as described above. Then, to ensure that the tooltip is updated as described above. Then, to ensure that the tooltip is updated
immediately, you must call QToolTip::showText() instead of immediately, you must call QToolTip::showText() instead of