-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaboutGrepToolQML.qml
77 lines (61 loc) · 1.97 KB
/
aboutGrepToolQML.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import QtQuick 2.15
import QtQuick.Layouts 1.12
import QtQuick.Controls 2.15
import QtQuick.Controls.Material 2.15
import QtQuick.Controls.Universal 2.15
Page {
id: pageAboutQt
title: qsTr("about GrepToolQML")
focus: true
ColumnLayout {
id: aboutColumn
x: parent.x
width: parent.width
spacing: 50
anchors.topMargin: 50
Image {
source: "Image/GrepToolQML.png"
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
fillMode: Image.PreserveAspectFit
}
Label {
text: "GrepToolQML" + qsTr("\t") + mainWindowModel.getVersion()
width: parent.availableWidth
textFormat: Label.RichText
wrapMode: Label.WordWrap
horizontalAlignment: Label.AlignHCenter
verticalAlignment: Label.AlignVCenter
Layout.fillWidth: true
Layout.fillHeight: true
}
Label {
text: "<html><head/><body><p>GrepToolQML developed by Presire<br><br> \
<a href=\"https://github.com/presire\">Visit Prersire Github</a></p></body></html>"
width: parent.availableWidth
textFormat: Label.RichText
wrapMode: Label.WordWrap
horizontalAlignment: Label.AlignHCenter
verticalAlignment: Label.AlignVCenter
Layout.fillWidth: true
Layout.fillHeight: true
Connections {
function onLinkActivated() {
Qt.openUrlExternally(link)
}
}
}
// Button {
// id: aboutDialogButton
// text: "Close"
// focus: true
// Layout.alignment: Qt.AlignHCenter
// Layout.margins: 20
// Connections {
// target: aboutDialogButton
// function onClicked() {
// aboutDialog.close()
// }
// }
// }
}
}