Files
purple-electrumwallet/electrum/gui/qml/components/About.qml
T
SomberNight 61a6ab1d95 locale: don't translate URL, like wtf
please, use common sense :(
I guess it was a copy-paste error, but still, treat all _() and qsTr() calls as "scary" and as potential attack vectors. Don't blindly call _(): every call needs to be weighed separately.
2026-02-14 09:25:39 +00:00

100 lines
2.8 KiB
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import QtQuick.Controls.Material
Pane {
objectName: 'About'
property string title: qsTr("About Electrum")
Flickable {
anchors.fill: parent
contentHeight: rootLayout.height
interactive: height < contentHeight
GridLayout {
id: rootLayout
columns: 2
width: parent.width
Item {
Layout.columnSpan: 2
Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: parent.width
Layout.preferredHeight: parent.width * 3/4 // reduce height, empty space in png
Image {
id: electrum_logo
width: parent.width
height: width
source: '../../icons/electrum_presplash.png'
}
}
Label {
text: qsTr('Version')
Layout.alignment: Qt.AlignRight
}
Label {
text: BUILD.electrum_version
}
Label {
text: qsTr('Protocol version')
Layout.alignment: Qt.AlignRight
}
Label {
text: BUILD.protocol_version
}
Label {
text: qsTr('Qt Version')
Layout.alignment: Qt.AlignRight
}
Label {
text: BUILD.qt_version
}
Label {
text: qsTr('PyQt Version')
Layout.alignment: Qt.AlignRight
}
Label {
text: BUILD.pyqt_version
}
Label {
text: qsTr('License')
Layout.alignment: Qt.AlignRight
}
Label {
text: qsTr('MIT License')
}
Label {
text: qsTr('Homepage')
Layout.alignment: Qt.AlignRight
}
Label {
text: '<a href="https://electrum.org">https://electrum.org</a>'
textFormat: Text.RichText
onLinkActivated: Qt.openUrlExternally(link)
}
Label {
text: qsTr('Developers')
Layout.alignment: Qt.AlignRight
}
Label {
text: 'Thomas Voegtlin\nSomberNight\nSander van Grieken'
}
Item {
width: 1
height: constants.paddingXLarge
Layout.columnSpan: 2
}
Label {
text: qsTr('Distributed by Electrum Technologies GmbH')
Layout.columnSpan: 2
Layout.alignment: Qt.AlignHCenter
}
}
}
}