Doc: Fix auto-links to deprecated functions
Change-Id: Id4456eef3440734add2d804d186966e253335b7c Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
6854ea6336
commit
475c951d69
@ -171,7 +171,7 @@
|
||||
The QComboBox::itemData() function returns the data as a QVariant,
|
||||
so we need to cast the data to \c RenderArea::Shape. If there is
|
||||
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
|
||||
the \c RenderArea widget.
|
||||
|
@ -2214,7 +2214,7 @@ QList<QGraphicsItem *> QGraphicsView::items() const
|
||||
|
||||
This function is most commonly called from within mouse event handlers in
|
||||
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
|
||||
|
||||
|
@ -238,8 +238,7 @@ void QApplicationPrivate::createEventDispatcher()
|
||||
palette(),
|
||||
setPalette(),
|
||||
font(),
|
||||
setFont(),
|
||||
fontMetrics().
|
||||
setFont().
|
||||
|
||||
\row
|
||||
\li Event handling
|
||||
|
@ -9496,14 +9496,14 @@ void QWidget::changeEvent(QEvent * event)
|
||||
tracking is switched on, mouse move events occur even if no mouse
|
||||
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
|
||||
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.
|
||||
This is a feature of the underlying window system, not Qt.
|
||||
|
||||
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
|
||||
as described above. Then, to ensure that the tooltip is updated
|
||||
immediately, you must call QToolTip::showText() instead of
|
||||
|
Loading…
x
Reference in New Issue
Block a user