summaryrefslogtreecommitdiff
path: root/contents
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2023-07-26 18:47:56 +0800
committerFrederick Yin <fkfd@fkfd.me>2023-07-26 18:47:56 +0800
commitd6e5294daece7e56b271f53a5d496f5edd620916 (patch)
treec1ff8bfa7f4ea5f5fe14239c6047b45a49b39889 /contents
parenta3ce413e6bdbd119e5079e5e6edf98ed0a3c97a7 (diff)
Clicking title opens activity instead of toggling finished
Diffstat (limited to 'contents')
-rw-r--r--contents/ui/ActivityView.qml30
1 files changed, 9 insertions, 21 deletions
diff --git a/contents/ui/ActivityView.qml b/contents/ui/ActivityView.qml
index ff27a14..febc4e0 100644
--- a/contents/ui/ActivityView.qml
+++ b/contents/ui/ActivityView.qml
@@ -78,9 +78,16 @@ PlasmaComponents.ListItem {
MouseArea {
width: parent.width
height: parent.height
+ cursorShape:
+ type == "announcement"
+ ? Qt.ArrowCursor
+ : Qt.PointingHandCursor
onClicked: () => {
- activityCheckbox.toggle() // toggle checkbox
- activityCheckbox.toggled() // and trigger the onToggled effects
+ if (type == "announcement") {
+ expanded = !expanded
+ } else {
+ Qt.openUrlExternally(url)
+ }
}
}
}
@@ -89,25 +96,6 @@ PlasmaComponents.ListItem {
// buttons
RowLayout {
Layout.alignment: Qt.AlignRight
-
- PlasmaComponents3.ToolButton {
- icon.name: "expand"
- visible: type == "announcement"
- // only show when mouse is hovering above this activity
- opacity: activityItem.containsMouse ? 1 : 0
- onClicked: () => {
- expanded = !expanded
- }
- }
-
- PlasmaComponents3.ToolButton {
- icon.name: "view-visible"
- opacity: activityItem.containsMouse ? 1 : 0
- onClicked: () => {
- Qt.openUrlExternally(url)
- }
- }
-
PlasmaComponents3.ToolButton {
icon.name: "emblem-important-symbolic"
checked: important