From c634f964ebc19e98a0a521ad13e244e712c25b7f Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 6 Apr 2022 22:46:46 +0800 Subject: Add button to open announcement in browser --- contents/ui/AnnouncementView.qml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contents/ui/AnnouncementView.qml') 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 { -- cgit v1.2.3