summaryrefslogtreecommitdiff
path: root/contents/ui/AnnouncementView.qml
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-04-06 22:46:46 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-04-06 22:46:46 +0800
commitc634f964ebc19e98a0a521ad13e244e712c25b7f (patch)
tree5770806581cb9af91e6b25c59bb8d771529e0f86 /contents/ui/AnnouncementView.qml
parent3441620a2ef7f1de8ad3f1339b5063bf8789a9a0 (diff)
Add button to open announcement in browser
Diffstat (limited to 'contents/ui/AnnouncementView.qml')
-rw-r--r--contents/ui/AnnouncementView.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/contents/ui/AnnouncementView.qml b/contents/ui/AnnouncementView.qml
index 8453b90..5ce4d64 100644
--- a/contents/ui/AnnouncementView.qml
+++ b/contents/ui/AnnouncementView.qml
@@ -30,8 +30,12 @@ RowLayout {
RowLayout {
Layout.alignment: Qt.AlignRight
+
PlasmaComponents3.ToolButton {
icon.name: "view-visible"
+ onClicked: () => {
+ Qt.openUrlExternally(url)
+ }
}
PlasmaComponents3.ToolButton {