diff options
| author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2022-09-13 14:29:39 +0200 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-09-16 20:01:02 +0200 |
| commit | 5383feab9f12f2a2640470c705bd8523a9686a97 (patch) | |
| tree | f385cebb79843946e77b5d6e24902afc1caac92c /src/quickcontrolstestutils/controlstestutils.cpp | |
| parent | 61edfb7f31e70d55e3e272f968f9f5258a363679 (diff) | |
QQuickHoverHandler: setHasHoverInChild to false when disabled
Toggle setHasHoverInChild in sync with the handler being enabled.
This fixes a bug: if a HoverHandler is hovered, and somehow the
enabled property is programmatically set to false with no mouse
moveement and without any other scenegraph changes (i.e. no item
gets marked dirty and therefore flushFrameSynchronousEvents()
doesn't run), its hovered property now changes to false immediately,
as it should.
The DA will get less items to traverse, so this is also an optimization.
Pick-to: 6.4
Change-Id: I24be7d25ee15180fff010cc1c532266cd6e73ffb
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quickcontrolstestutils/controlstestutils.cpp')
0 files changed, 0 insertions, 0 deletions
