diff options
-rw-r--r-- | contents/ui/AnnouncementView.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contents/ui/AnnouncementView.qml b/contents/ui/AnnouncementView.qml index cba1d00..e178482 100644 --- a/contents/ui/AnnouncementView.qml +++ b/contents/ui/AnnouncementView.qml @@ -16,6 +16,7 @@ RowLayout { RowLayout { Layout.fillWidth: true PlasmaComponents3.CheckBox { + id: announcementCheckbox onToggled: () => { announcementLabel.font.strikeout = (checkState == Qt.Checked) } @@ -26,6 +27,14 @@ RowLayout { text: `[${course}] ${title}` elide: Text.ElideRight Layout.fillWidth: true + + MouseArea { + anchors.fill: parent + onClicked: () => { + announcementCheckbox.toggle() // toggle checkbox + announcementCheckbox.toggled() // and trigger the onToggled effects + } + } } } |