File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ ColumnLayout {
51
51
header: qsTr (" Version" )
52
52
actionItem: ExternalLink {
53
53
parentState: versionLink .state
54
- description: " v22.99.0-1e7564eca8a6 "
54
+ description: nodeModel . fullClientVersion
55
55
link: " https://bitcoin.org/en/download"
56
56
iconSource: " image://images/caret-right"
57
57
iconWidth: 18
Original file line number Diff line number Diff line change 7
7
8
8
#include < interfaces/handler.h>
9
9
#include < interfaces/node.h>
10
+ #include < clientversion.h>
10
11
11
12
#include < memory>
12
13
13
14
#include < QObject>
15
+ #include < QString>
14
16
15
17
QT_BEGIN_NAMESPACE
16
18
class QTimerEvent ;
@@ -25,6 +27,7 @@ class NodeModel : public QObject
25
27
{
26
28
Q_OBJECT
27
29
Q_PROPERTY (int blockTipHeight READ blockTipHeight NOTIFY blockTipHeightChanged)
30
+ Q_PROPERTY (QString fullClientVersion READ fullClientVersion CONSTANT)
28
31
Q_PROPERTY (int numOutboundPeers READ numOutboundPeers NOTIFY numOutboundPeersChanged)
29
32
Q_PROPERTY (int maxNumOutboundPeers READ maxNumOutboundPeers CONSTANT)
30
33
Q_PROPERTY (int remainingSyncTime READ remainingSyncTime NOTIFY remainingSyncTimeChanged)
@@ -36,6 +39,7 @@ class NodeModel : public QObject
36
39
37
40
int blockTipHeight () const { return m_block_tip_height; }
38
41
void setBlockTipHeight (int new_height);
42
+ QString fullClientVersion () const { return QString::fromStdString (FormatFullVersion ()); }
39
43
int numOutboundPeers () const { return m_num_outbound_peers; }
40
44
void setNumOutboundPeers (int new_num);
41
45
int maxNumOutboundPeers () const { return m_max_num_outbound_peers; }
You can’t perform that action at this time.
0 commit comments