diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-11-24 14:26:20 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-11-24 14:35:03 +0100 |
| commit | 827d9a3be8209587c532f061753e99730b9be4c4 (patch) | |
| tree | 95ef51b6773b4d9f2ef8b2ff999188bd96632a9c /src/qt/bitcoingui.h | |
| parent | Merge #9216: Doc: Fix copypasted comment (diff) | |
| download | discoin-827d9a3be8209587c532f061753e99730b9be4c4.tar.xz discoin-827d9a3be8209587c532f061753e99730b9be4c4.zip | |
qt: Replace NetworkToggleStatusBarControl with generic ClickableLabel
Generalize the clickable label functionality.
We will use this to add similar functionality to the sync icon.
Diffstat (limited to 'src/qt/bitcoingui.h')
| -rw-r--r-- | src/qt/bitcoingui.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h index 1b02e77fc..59540bfe6 100644 --- a/src/qt/bitcoingui.h +++ b/src/qt/bitcoingui.h @@ -26,7 +26,6 @@ class PlatformStyle; class RPCConsole; class SendCoinsRecipient; class UnitDisplayStatusBarControl; -class NetworkToggleStatusBarControl; class WalletFrame; class WalletModel; class HelpMessageDialog; @@ -86,7 +85,7 @@ private: UnitDisplayStatusBarControl *unitDisplayControl; QLabel *labelWalletEncryptionIcon; QLabel *labelWalletHDStatusIcon; - NetworkToggleStatusBarControl *connectionsControl; + QLabel *connectionsControl; QLabel *labelBlocksIcon; QLabel *progressBarLabel; QProgressBar *progressBar; @@ -238,6 +237,9 @@ private Q_SLOTS: /** When hideTrayIcon setting is changed in OptionsModel hide or show the icon accordingly. */ void setTrayIconVisible(bool); + /** Toggle networking */ + void toggleNetworkActive(); + void showModalOverlay(); }; @@ -270,17 +272,4 @@ private Q_SLOTS: void onMenuSelection(QAction* action); }; -class NetworkToggleStatusBarControl : public QLabel -{ - Q_OBJECT - -public: - void setClientModel(ClientModel *clientModel); -protected: - void mousePressEvent(QMouseEvent *event); - -private: - ClientModel *clientModel; -}; - #endif // BITCOIN_QT_BITCOINGUI_H |