Bug 449538

Summary: ExpandableListItem: hovering over action button does not automatically hover / mark item as current in list
Product: [Frameworks and Libraries] libplasma Reporter: ratijas <me>
Component: componentsAssignee: ratijas <me>
Status: RESOLVED UPSTREAM    
Severity: minor CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: ExpandableListItem hover bug
Expandable list items - hover and current index

Description ratijas 2022-02-03 01:07:56 UTC
Created attachment 146205 [details]
ExpandableListItem hover bug

SUMMARY

When using rapid mouse movement or input interfaces like a graphic tablet which jumps straight to the point {x,y} without intermediate states, and ending up hovering over an action button of an ExpandableListItem, the button is properly highlighted, but the list item itself may not receive hover event to become highlighted as a "current item" of its list view.

This affects all applets that use ExpandableListItem with action buttons, including: Bluetooth, Networks, Disks & Devices. It does not affect Clipboard applet, because currently its list items require a mouse hover to show any action buttons in the first place.

STEPS TO REPRODUCE
1. Open e.g. «Networks» applet and wait for some networks to appear if you don't have any in the list yet.
2. Quickly move cursor to the Connect button of an item (network) that is not currently highlighted.

OBSERVED RESULT
Button highlights as it should in hover state, but the list item itself is not.

EXPECTED RESULT
List item should become "current" and highlight as well.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.4-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2
Comment 1 ratijas 2022-02-03 01:13:05 UTC
Created attachment 146206 [details]
Expandable list items - hover and current index

A screenshot for those who don't like watching videos.
Comment 2 Nate Graham 2022-02-03 20:22:00 UTC
Can reproduce. Wanna fix it? :)
Comment 3 ratijas 2022-07-12 11:10:49 UTC
How weird, I can't reproduce this by nesting multiple PC3.Buttons on top of each other in a playground project.
Comment 4 ratijas 2022-07-12 11:16:45 UTC
OTOH MouseArea::positionChanged is not emitted when there are child items in the way.
Comment 5 Bug Janitor Service 2022-07-12 11:40:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/plasma-framework/-/merge_requests/562
Comment 6 ratijas 2023-11-16 21:43:05 UTC
This appears to be fixed in Qt 6!