diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-10-04 18:12:25 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-10-04 18:12:25 +0800 |
| commit | cc70dc5e0e7f9444c4ae1a5c6cd3d9300b2c3ae3 (patch) | |
| tree | e58e181c580ee4c9a7f01e326e5bf90ed8282fa3 /bar/Bar.qml | |
| parent | 1aed1c0b13fb5a7e3ec2f19b9ef1403623d18123 (diff) | |
basic stepping stone
Diffstat (limited to 'bar/Bar.qml')
| -rw-r--r-- | bar/Bar.qml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bar/Bar.qml b/bar/Bar.qml index 70a633c..5e4523d 100644 --- a/bar/Bar.qml +++ b/bar/Bar.qml @@ -4,6 +4,8 @@ import QtQuick.Layouts import qs.components import qs.config +import ".." + Scope { id: root @@ -154,6 +156,15 @@ Scope { easing.type: Easing.InOutQuad } } + MouseArea { + anchors.fill: parent + onPressed: { + Global.ccProp.active = !Global.ccProp.active; + let pos = parent.mapToGlobal(0, 0); + Global.ccProp.x = pos.x; + Global.ccProp.y = pos.y; + } + } } } } @@ -168,8 +179,9 @@ Scope { } MouseArea { anchors.fill: parent - cursorShape: Qt.PointingHandCursor hoverEnabled: true + cursorShape: Qt.PointingHandCursor + acceptedButtons: Qt.NoButton // propagate to timedate onEntered: { timeDateCC.showcc = true; } |
