feat(GODT-2772): link for Apple Mail manual configuration.

This commit is contained in:
Xavier Michelon
2023-08-23 16:59:14 +02:00
parent 75ed3ca660
commit f617a44d28
4 changed files with 26 additions and 40 deletions

View File

@ -15,20 +15,31 @@ import QtQuick.Controls
Label {
id: root
property var callback: null
function clear() {
callback = null;
text = "";
}
function setCallback(callback, linkText) {
root.callback = callback;
text = link("#", linkText);
}
function setLink(linkURL, linkText) {
callback = null;
text = link(linkURL, linkText);
}
type: Label.LabelType.Body
onLinkActivated: function (link) {
// if the link is "#", the user is indicating he will provide its own link activation handler.
if (link !== "#") {
Qt.openUrlExternally(link);
}
if (callback) {
callback();
}
}
HoverHandler {