diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-08-22 17:19:55 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-08-22 17:19:55 +0800 |
| commit | 745c999f076f55becd4526c41c02b800c927e8ce (patch) | |
| tree | b782633c790e857ca0b80452d475c0aa787f7a9e /popups | |
| parent | af52ea407d10c86a2e5b5049cddb6abdee3952f8 (diff) | |
IComponent: auto set selectedPriority to self when hovered
kept the old rev that manually did that in syncSelectionState so we
could still manually do it
Diffstat (limited to 'popups')
| -rw-r--r-- | popups/launcher/components/IComponent.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/popups/launcher/components/IComponent.qml b/popups/launcher/components/IComponent.qml index 719ae94..4333998 100644 --- a/popups/launcher/components/IComponent.qml +++ b/popups/launcher/components/IComponent.qml @@ -95,6 +95,13 @@ IRect { } } + HoverHandler { + onHoveredChanged: { + if (hovered) + root.state.selectedPriority = root.getSelfPriority(); + } + } + Component.onCompleted: { Qt.callLater(() => { syncSelectionState(); |
