1
0

Merge pull request #8682 from accumulator/about_version

qml: remove APK version, add Qt and PyQt version strings to About page
This commit is contained in:
ThomasV
2023-11-10 15:04:53 +01:00
committed by GitHub
2 changed files with 18 additions and 10 deletions

View File

@@ -39,13 +39,6 @@ Pane {
Label {
text: BUILD.electrum_version
}
Label {
text: qsTr('APK Version')
Layout.alignment: Qt.AlignRight
}
Label {
text: BUILD.apk_version
}
Label {
text: qsTr('Protocol version')
Layout.alignment: Qt.AlignRight
@@ -53,6 +46,20 @@ Pane {
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

View File

@@ -7,7 +7,7 @@ import html
import threading
from typing import TYPE_CHECKING, Set
from PyQt6.QtCore import (pyqtSlot, pyqtSignal, pyqtProperty, QObject,
from PyQt6.QtCore import (pyqtSlot, pyqtSignal, pyqtProperty, QObject, QT_VERSION_STR, PYQT_VERSION_STR,
qInstallMessageHandler, QTimer, QSortFilterProxyModel)
from PyQt6.QtGui import QGuiApplication, QFontDatabase, QScreen
from PyQt6.QtQml import qmlRegisterType, qmlRegisterUncreatableType, QQmlApplicationEngine
@@ -411,8 +411,9 @@ class ElectrumQmlApplication(QGuiApplication):
self.context.setContextProperty('QRIP', self.qr_ip_h)
self.context.setContextProperty('BUILD', {
'electrum_version': version.ELECTRUM_VERSION,
'apk_version': version.APK_VERSION,
'protocol_version': version.PROTOCOL_VERSION
'protocol_version': version.PROTOCOL_VERSION,
'qt_version': QT_VERSION_STR,
'pyqt_version': PYQT_VERSION_STR
})
self.plugins.load_plugin('trustedcoin')