Simplify code for about dialog of Qt Quick GUI

This commit is contained in:
Martchus 2024-03-25 18:29:48 +01:00
parent cd23eb4add
commit eed9d596ba
1 changed files with 1 additions and 9 deletions

View File

@ -42,16 +42,8 @@ BasicDialog {
Layout.fillWidth: true
text: "<a href=\"" + app.organizationDomain + "\">" + app.organizationDomain + "</a>"
horizontalAlignment: Text.AlignHCenter
onLinkActivated: openWebsite()
onLinkActivated: Qt.openUrlExternally(app.organizationDomain)
wrapMode: Text.Wrap
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: parent.openWebsite()
}
function openWebsite() {
Qt.openUrlExternally(app.organizationDomain)
}
}
Controls.Label {
Layout.fillWidth: true