forked from bitcoin-core/gui-qml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutOptions.qml
76 lines (74 loc) · 2.29 KB
/
AboutOptions.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
// Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import "../controls"
ColumnLayout {
spacing: 4
Setting {
id: websiteLink
Layout.fillWidth: true
header: qsTr("Website")
actionItem: ExternalLink {
parentState: websiteLink.state
description: "bitcoincore.org"
link: "https://bitcoincore.org"
}
onClicked: loadedItem.clicked()
}
Separator { Layout.fillWidth: true }
Setting {
id: sourceLink
Layout.fillWidth: true
header: qsTr("Source code")
actionItem: ExternalLink {
parentState: sourceLink.state
description: "github.com/bitcoin/bitcoin"
link: "https://github.com/bitcoin/bitcoin"
}
onClicked: loadedItem.clicked()
}
Separator { Layout.fillWidth: true }
Setting {
id: licenseLink
Layout.fillWidth: true
header: qsTr("License")
actionItem: ExternalLink {
parentState: licenseLink.state
description: "MIT"
link: "https://opensource.org/licenses/MIT"
}
onClicked: loadedItem.clicked()
}
Separator { Layout.fillWidth: true }
Setting {
id: versionLink
Layout.fillWidth: true
header: qsTr("Version")
actionItem: ExternalLink {
parentState: versionLink.state
description: nodeModel.fullClientVersion
link: "https://bitcoin.org/en/download"
iconSource: "image://images/caret-right"
iconWidth: 18
iconHeight: 18
}
onClicked: loadedItem.clicked()
}
Separator { Layout.fillWidth: true }
Setting {
id: gotoDeveloper
Layout.fillWidth: true
header: qsTr("Developer options")
description: qsTr("Only use these if you have development experience")
actionItem: CaretRightButton{
stateColor: gotoDeveloper.stateColor
onClicked: {
aboutSwipe.incrementCurrentIndex()
}
}
onClicked: loadedItem.clicked()
}
}