feat(GODT-3046): link in pop-up banner.

This commit is contained in:
Xavier Michelon
2023-10-24 17:40:26 +02:00
committed by Xavier Michelon
parent 0e5715c4e3
commit 650ad49ab0
3 changed files with 32 additions and 8 deletions

View File

@ -22,6 +22,7 @@ RowLayout {
property bool external: false
property string link: "#"
property string text: ""
property color color: colorScheme.interaction_norm
function clear() {
root.callback = null;
@ -49,9 +50,9 @@ RowLayout {
id: label
Layout.alignment: Qt.AlignVCenter
colorScheme: root.colorScheme
linkColor: root.color
text: label.link(root.link, root.text)
type: Label.LabelType.Body
onLinkActivated: function (link) {
if ((link !== "#") && (link.length > 0)) {
Qt.openUrlExternally(link);