Simplify code for about dialog of Qt Quick GUI
This commit is contained in:
parent
cd23eb4add
commit
eed9d596ba
|
@ -42,16 +42,8 @@ BasicDialog {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: "<a href=\"" + app.organizationDomain + "\">" + app.organizationDomain + "</a>"
|
text: "<a href=\"" + app.organizationDomain + "\">" + app.organizationDomain + "</a>"
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
onLinkActivated: openWebsite()
|
onLinkActivated: Qt.openUrlExternally(app.organizationDomain)
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
onClicked: parent.openWebsite()
|
|
||||||
}
|
|
||||||
function openWebsite() {
|
|
||||||
Qt.openUrlExternally(app.organizationDomain)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
Loading…
Reference in New Issue