/
AboutPopover.qml
83 lines (64 loc) · 2.29 KB
/
AboutPopover.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
78
79
80
81
82
83
import QtQuick 2.0
import Ubuntu.Components 1.1
import Ubuntu.Components.ListItems 0.1 as ListItem
import Ubuntu.Components.Popups 1.0
Component {
id: popoverComponent
Popover {
id: aboutPopover
Column {
id: aboutColumn
anchors {
left: parent.left
right: parent.right
}
ListItem.Header {
text: "uLuas\tv" + version
}
ListItem.Standard {
text: "Written by Aaron Hastings (thecosmicfrog)"
onClicked: Qt.openUrlExternally("https://github.com/thecosmicfrog")
}
ListItem.Standard {
text: "License: GNU GPLv3"
}
ListItem.Standard {
text: "Source code, bugs and feature requests:<br>
<a href=\"https://github.com/thecosmicfrog/uLuas\">github.com/thecosmicfrog/uLuas</a>"
onClicked: Qt.openUrlExternally("https://github.com/thecosmicfrog/uLuas")
}
ListItem.Standard {
Item {
anchors.fill: parent
Image {
id: aboutLogo
anchors {
left: parent.left
leftMargin: units.gu(2)
}
source: "../uluas_logo.png"
width: parent.width / 6.8
height: parent.width / 6.8
}
Label {
anchors {
left: aboutLogo.right
leftMargin: units.gu(2)
verticalCenter: aboutLogo.verticalCenter
}
text: "uLuas logo by Sam Hewitt (<a href=\"http://snwh.org\">snwh</a>)"
color: "#000000"
onLinkActivated: Qt.openUrlExternally(link)
}
}
}
ListItem.SingleControl {
highlightWhenPressed: false
control: Button {
text: "Close"
onClicked: PopupUtils.close(aboutPopover)
}
}
}
}
}