From eed9d596baa3100e0aa1f780e4c9e30004a9bdf6 Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 25 Mar 2024 18:29:48 +0100 Subject: [PATCH] Simplify code for about dialog of Qt Quick GUI --- qml/AboutDialog.qml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/qml/AboutDialog.qml b/qml/AboutDialog.qml index fe26da1..c692bee 100644 --- a/qml/AboutDialog.qml +++ b/qml/AboutDialog.qml @@ -42,16 +42,8 @@ BasicDialog { Layout.fillWidth: true text: "" + app.organizationDomain + "" 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