@@ -26,6 +26,7 @@ class NodeModel : public QObject
26
26
Q_OBJECT
27
27
Q_PROPERTY (int blockTipHeight READ blockTipHeight NOTIFY blockTipHeightChanged)
28
28
Q_PROPERTY (double verificationProgress READ verificationProgress NOTIFY verificationProgressChanged)
29
+ Q_PROPERTY (bool pause READ pause WRITE setPause NOTIFY pauseChanged)
29
30
30
31
public:
31
32
explicit NodeModel (interfaces::Node& node);
@@ -34,6 +35,8 @@ class NodeModel : public QObject
34
35
void setBlockTipHeight (int new_height);
35
36
double verificationProgress () const { return m_verification_progress; }
36
37
void setVerificationProgress (double new_progress);
38
+ bool pause () const { return m_pause; }
39
+ void setPause (bool new_pause);
37
40
38
41
Q_INVOKABLE void startNodeInitializionThread ();
39
42
@@ -48,6 +51,7 @@ public Q_SLOTS:
48
51
void requestedInitialize ();
49
52
void requestedShutdown ();
50
53
void verificationProgressChanged ();
54
+ void pauseChanged (bool new_pause);
51
55
52
56
protected:
53
57
void timerEvent (QTimerEvent* event) override ;
@@ -56,6 +60,7 @@ public Q_SLOTS:
56
60
// Properties that are exposed to QML.
57
61
int m_block_tip_height{0 };
58
62
double m_verification_progress{0.0 };
63
+ bool m_pause{false };
59
64
60
65
int m_shutdown_polling_timer_id{0 };
61
66
0 commit comments