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 {
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 
Original file line number Diff line number Diff line change 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
1517QT_BEGIN_NAMESPACE
1618class  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; }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments