diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-08-23 11:53:32 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-08-23 11:59:54 +0800 |
| commit | a41ab9ad95b4f8e053af82741a45f747e77ff37a (patch) | |
| tree | e420ff6c7949df0a7767235a82080eb958689e2d /bar/Power.qml | |
| parent | 745c999f076f55becd4526c41c02b800c927e8ce (diff) | |
MouseArea: attempt to replace all MouseArea to modern non stealing
alternative
mousearea anchor.fill parent of item/slider etc. that doesn't have width
or height won't work with the modern alternative so..
Diffstat (limited to 'bar/Power.qml')
| -rw-r--r-- | bar/Power.qml | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/bar/Power.qml b/bar/Power.qml index a29bc4a..02da1f1 100644 --- a/bar/Power.qml +++ b/bar/Power.qml @@ -110,14 +110,13 @@ Item { } } - MouseArea { - anchors.fill: parent - hoverEnabled: true - onEntered: { - root.collapsed = false; - } - onExited: { - root.collapsed = true; + HoverHandler { + onHoveredChanged: { + if (!hovered) { + root.collapsed = true; + } else { + root.collapsed = false; + } } } } |
