summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2019-12-02 17:30:18 +0100
committerPaul Olav Tvete <paul.tvete@qt.io>2019-12-05 10:05:04 +0100
commit5a6fb46488ebc26b79b9d37a7f91969e0d852b4f (patch)
tree3115d9679ef946d004a2ce9f57f9c877181a5643 /src/gui
parent913146ccd401216f71f037ea304b5e61b7a138cf (diff)
QGraphicsItem: Fix mouse tracking with modal panels
This fixes the case where a mouse tracking item is added to the scene while a modal panel is blocking. In order to optimize event delivery, mouse tracking is enabled for the view only when an item that needs it is added. This means that we cannot use itemAcceptsHoverEvents_helper(), since that returns whether the item _currently_ needs hover events, and we need to know whether it will need them in the future. [ChangeLog][QtWidgets][QGraphicsView] Fixed a bug where hover events would not be delivered if the item was added while blocked by a modal panel. Fixes: QTBUG-77233 Change-Id: Ifc95869f2cc9c8c048330928ef8a13cd27cfd0f9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions