diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-03 22:21:50 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-03 22:21:50 +0800 |
| commit | dc7fee36ac26af215cf9cc2727c35b34d16113e0 (patch) | |
| tree | 3ffd2d851b7e97bd0035807f9b8edc540aace112 | |
| parent | 533750aa9cfe32e4bab0afb3c82b52d1b01db3ab (diff) | |
IComponent*: use onClicked instead of onPressed
| -rw-r--r-- | bar/TimeDate.qml | 2 | ||||
| -rw-r--r-- | bar/Workspace.qml | 2 | ||||
| -rw-r--r-- | bar/components/SimpleResource.qml | 2 | ||||
| -rw-r--r-- | popups/launcher/components/App.qml | 7 | ||||
| -rw-r--r-- | popups/launcher/components/Calc.qml | 1 | ||||
| -rw-r--r-- | popups/launcher/components/Clip.qml | 5 | ||||
| -rw-r--r-- | popups/launcher/components/Emoji.qml | 2 | ||||
| -rw-r--r-- | popups/launcher/components/Spell.qml | 2 |
8 files changed, 13 insertions, 10 deletions
diff --git a/bar/TimeDate.qml b/bar/TimeDate.qml index ddeca47..adbda83 100644 --- a/bar/TimeDate.qml +++ b/bar/TimeDate.qml @@ -126,7 +126,7 @@ Item { MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor - onPressed: { + onClicked: { root.isAlt = !root.isAlt; } } diff --git a/bar/Workspace.qml b/bar/Workspace.qml index 51c4ba4..9096a2e 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -132,7 +132,7 @@ Item { acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton hoverEnabled: true - onPressed: { + onClicked: { if (!parent.active) Hyprland.dispatch(`hl.dsp.focus({ workspace = '${index + 1}' })`); } diff --git a/bar/components/SimpleResource.qml b/bar/components/SimpleResource.qml index cb2fef6..6159f62 100644 --- a/bar/components/SimpleResource.qml +++ b/bar/components/SimpleResource.qml @@ -93,7 +93,7 @@ Item { MouseArea { anchors.fill: parent cursorShape: altValue != value ? Qt.PointingHandCursor : Qt.ArrowCursor - onPressed: { + onClicked: { root.isAlt = !root.isAlt; } } diff --git a/popups/launcher/components/App.qml b/popups/launcher/components/App.qml index 1fa27a7..af2e12c 100644 --- a/popups/launcher/components/App.qml +++ b/popups/launcher/components/App.qml @@ -123,7 +123,7 @@ IComponent { id: layout fromParent: false width: parent.width - height: Math.min(listView.contentHeight + titleBar.height, Launcher.widgetHeight * 1.5) + height: Math.min(listView.contentHeight + titleBar.height, Launcher.widgetHeight) IListView { id: listView @@ -133,7 +133,8 @@ IComponent { model: entries spacing: 0 - highlightMoveDuration: 500 + // orientation: ListView.Horizontal + delegate: Item { required property DesktopEntry modelData required property int index @@ -178,7 +179,7 @@ IComponent { onEntered_: { root.selectedIndex = index; } - onPressed: { + onClicked: { root._exec(); } } diff --git a/popups/launcher/components/Calc.qml b/popups/launcher/components/Calc.qml index d3b5043..b1b80cd 100644 --- a/popups/launcher/components/Calc.qml +++ b/popups/launcher/components/Calc.qml @@ -14,6 +14,7 @@ IComponent { property int cursorPosition: SelectionState.cursorPosition name: "Calculator" + preview: Component { Icon { text: "" diff --git a/popups/launcher/components/Clip.qml b/popups/launcher/components/Clip.qml index a830483..ae73af5 100644 --- a/popups/launcher/components/Clip.qml +++ b/popups/launcher/components/Clip.qml @@ -86,7 +86,7 @@ IComponent { id: layout fromParent: false width: parent.width - height: Math.min(listView.contentHeight + titleBar.height, Launcher.widgetHeight * 1.5) + height: Math.min(listView.contentHeight + titleBar.height, Launcher.widgetHeight) RowLayout { Layout.fillWidth: true @@ -139,8 +139,9 @@ IComponent { fillMode: Image.PreserveAspectFit scale: root.isSelectedPriority() && index === root.selectedIndex ? 1.01 : 0.9 - MouseArea { + IMouseArea { anchors.fill: parent + onClicked: { Quickshell.execDetached(["xdg-open", modelData?.data]); } diff --git a/popups/launcher/components/Emoji.qml b/popups/launcher/components/Emoji.qml index a74f693..67d33b4 100644 --- a/popups/launcher/components/Emoji.qml +++ b/popups/launcher/components/Emoji.qml @@ -170,7 +170,7 @@ IComponent { anchors.fill: parent hoverEnabled: true onEntered: root.selectedIndex = index - onPressed: root._exec() + onClicked: root._exec() } } diff --git a/popups/launcher/components/Spell.qml b/popups/launcher/components/Spell.qml index b7c1aa6..aadf388 100644 --- a/popups/launcher/components/Spell.qml +++ b/popups/launcher/components/Spell.qml @@ -179,7 +179,7 @@ IComponent { onEntered: { root.selectedIndex = index; } - onPressed: { + onClicked: { root._exec(); } } |
