qt5base-lts/tests/auto/widgets
Volker Hilsheimer d8688d4484 Don't set the mouse cursor for items that are disabled
As with widgets, items that are disabled should not receive any input
events.

Similar to QGraphicsScene, which ignores disabled items when handling
mouse presses, the view should also ignore them when handling mouse
moves to update the cursor.

Since QGraphicsView only adjusts the cursors on mouse moves, reenabling
an item that is currently under the mouse will not change the cursor.
This is consistent with other changes of item attributes that would
position the item under the mouse (such as moving it). The overhead of
hit-testing items for every such attribute change would be too large,
and applications can generate a mouse move event if they really need
to adjust the cursor in all situations.

[ChangeLog][QtWidgets][QGraphicsView] Ignore disabled items when setting
the mouse cursor.

Fixes: QTBUG-76765
Change-Id: Ifcd31fc0581e8421e58eeb436a55b031909eed7e
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2019-07-08 20:51:22 +02:00
..
dialogs Qt Widgets: Make tests pass on High DPI screens and scaling 2019-05-29 12:52:51 +02:00
effects qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
graphicsview Don't set the mouse cursor for items that are disabled 2019-07-08 20:51:22 +02:00
itemviews Qt Widgets: Make tests pass on High DPI screens and scaling 2019-05-29 12:52:51 +02:00
kernel Update visible window's alpha when toggling WA_TranslucentBackground 2019-07-02 16:35:18 +02:00
styles QStyleSheetStyle::repolish: only run on direct children 2019-04-12 14:33:32 +00:00
util Brush up tst_QCompleter 2019-06-07 12:34:47 +02:00
widgets Stabilize tst_qsplitter 2019-06-19 18:32:19 +02:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00