diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-05-01 22:50:56 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-05-08 09:51:07 +0300 |
commit | d29ea72393ac1d9b32a6976062e9c9fb75876295 (patch) | |
tree | 4e0d4afd098cde7f00a2e39da93add396cfba8fe /src/qt/bitcoingui.h | |
parent | d22e7ee93313b13365bd14a5fffeb055cff4dcd2 (diff) | |
download | bitcoin-d29ea72393ac1d9b32a6976062e9c9fb75876295.tar.xz |
gui: Add access to the Peers tab from the network icon
Diffstat (limited to 'src/qt/bitcoingui.h')
-rw-r--r-- | src/qt/bitcoingui.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h index 147f19e68d..332f6dc65c 100644 --- a/src/qt/bitcoingui.h +++ b/src/qt/bitcoingui.h @@ -16,6 +16,7 @@ #include <QLabel> #include <QMainWindow> #include <QMap> +#include <QMenu> #include <QPoint> #include <QSystemTrayIcon> @@ -50,7 +51,6 @@ QT_BEGIN_NAMESPACE class QAction; class QComboBox; class QDateTime; -class QMenu; class QProgressBar; class QProgressDialog; QT_END_NAMESPACE @@ -174,6 +174,8 @@ private: HelpMessageDialog* helpMessageDialog = nullptr; ModalOverlay* modalOverlay = nullptr; + QMenu* m_network_context_menu = new QMenu(this); + #ifdef Q_OS_MAC CAppNapInhibitor* m_app_nap_inhibitor = nullptr; #endif @@ -221,7 +223,7 @@ public Q_SLOTS: /** Set number of connections shown in the UI */ void setNumConnections(int count); /** Set network state shown in the UI */ - void setNetworkActive(bool networkActive); + void setNetworkActive(bool network_active); /** Set number of blocks and last block date shown in the UI */ void setNumBlocks(int count, const QDateTime& blockDate, double nVerificationProgress, bool headers, SynchronizationState sync_state); |