Doc: fix documentation for QGraphicsItem::setAcceptedMouseButtons()
Fix the documentation to pass Qt::NoButton instead 0 to QGraphicsItem::setAcceptedMouseButtons() since 0 is no longer accepted by QFlags. Change-Id: Ib98d509382e5b5407a07c74565adb7ee5afbb35f Pick-to: 6.2 6.3 Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
This commit is contained in:
parent
c5dd2c1f35
commit
4913aca32f
@ -3126,7 +3126,7 @@ Qt::MouseButtons QGraphicsItem::acceptedMouseButtons() const
|
||||
mouse events to the first item beneath it that does.
|
||||
|
||||
To disable mouse events for an item (i.e., make it transparent for mouse
|
||||
events), call setAcceptedMouseButtons(0).
|
||||
events), call setAcceptedMouseButtons(Qt::NoButton).
|
||||
|
||||
\sa acceptedMouseButtons(), mousePressEvent()
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user