summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-08-22 17:19:55 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-08-22 17:19:55 +0800
commit745c999f076f55becd4526c41c02b800c927e8ce (patch)
treeb782633c790e857ca0b80452d475c0aa787f7a9e
parentaf52ea407d10c86a2e5b5049cddb6abdee3952f8 (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
-rw-r--r--popups/launcher/components/IComponent.qml7
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();