Quick GUI: Improve about dialog
This commit is contained in:
parent
7a37caefcb
commit
ba4cec44da
14
qml/main.qml
14
qml/main.qml
|
@ -213,6 +213,7 @@ Kirigami.ApplicationWindow {
|
||||||
BasicDialog {
|
BasicDialog {
|
||||||
id: aboutDialog
|
id: aboutDialog
|
||||||
standardButtons: Controls.Dialog.Ok
|
standardButtons: Controls.Dialog.Ok
|
||||||
|
padding: Kirigami.Units.smallSpacing
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -242,18 +243,29 @@ Kirigami.ApplicationWindow {
|
||||||
text: description
|
text: description
|
||||||
font.italic: true
|
font.italic: true
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: "<a href=\"" + app.organizationDomain + "\">"
|
text: "<a href=\"" + app.organizationDomain + "\">"
|
||||||
+ app.organizationDomain + "</a>"
|
+ app.organizationDomain + "</a>"
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
onLinkActivated: Qt.openUrlExternally(app.organizationDomain)
|
onLinkActivated: openWebsite()
|
||||||
|
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
|
||||||
text: qsTr("developed by %1").arg(app.organizationName)
|
text: qsTr("developed by %1").arg(app.organizationName)
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue