Skip to content

Commit bff1d1a

Browse files
committed
2 parents 7e9daad + fbb7f77 commit bff1d1a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/qml/components/AboutOptions.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ColumnLayout {
5151
header: qsTr("Version")
5252
actionItem: ExternalLink {
5353
parentState: versionLink.state
54-
description: "v22.99.0-1e7564eca8a6"
54+
description: nodeModel.fullClientVersion
5555
link: "https://bitcoin.org/en/download"
5656
iconSource: "image://images/caret-right"
5757
iconWidth: 18

src/qml/nodemodel.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77

88
#include <interfaces/handler.h>
99
#include <interfaces/node.h>
10+
#include <clientversion.h>
1011

1112
#include <memory>
1213

1314
#include <QObject>
15+
#include <QString>
1416

1517
QT_BEGIN_NAMESPACE
1618
class QTimerEvent;
@@ -25,6 +27,7 @@ class NodeModel : public QObject
2527
{
2628
Q_OBJECT
2729
Q_PROPERTY(int blockTipHeight READ blockTipHeight NOTIFY blockTipHeightChanged)
30+
Q_PROPERTY(QString fullClientVersion READ fullClientVersion CONSTANT)
2831
Q_PROPERTY(int numOutboundPeers READ numOutboundPeers NOTIFY numOutboundPeersChanged)
2932
Q_PROPERTY(int maxNumOutboundPeers READ maxNumOutboundPeers CONSTANT)
3033
Q_PROPERTY(int remainingSyncTime READ remainingSyncTime NOTIFY remainingSyncTimeChanged)
@@ -36,6 +39,7 @@ class NodeModel : public QObject
3639

3740
int blockTipHeight() const { return m_block_tip_height; }
3841
void setBlockTipHeight(int new_height);
42+
QString fullClientVersion() const { return QString::fromStdString(FormatFullVersion()); }
3943
int numOutboundPeers() const { return m_num_outbound_peers; }
4044
void setNumOutboundPeers(int new_num);
4145
int maxNumOutboundPeers() const { return m_max_num_outbound_peers; }

0 commit comments

Comments
 (0)