Skip to content

extras/ExpandableListItem: Fix hovering state with nested buttons

ivan tkachenko requested to merge work/ratijas/enter into master

MouseArea doesn't emit positionChanged when the cursor is blocked by a nested/child item that accepts the event first. However, entered and exited signals seem to be emitted regardless of children handling.

This also finally gives us an opportunity to properly clean up highlighting when mouse leaves the area, as otherwise positionChanged is not emitted for out-of-bounds cursor (unlike the previous containsMouseChanged signal).

Amends: 421219dc
See also: plasma-desktop!1027 (merged)
BUG: 449538


CCMAIL: Bharadwaj Raju bharadwaj.raju777@protonmail.com @bharadwaj-raju

PS Nate, what did you mean by "so this doesn't trigger when the list reflows"? What's that, and how to test it?

PPS Adding label Efficiency, because with this patch less events will be handled in JavaScript.

Edited by ivan tkachenko

Merge request reports

Loading