diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-01-08 08:59:24 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-01-11 10:20:28 +0100 |
| commit | 35ecf854c084c248ad640c6af030a9d1ed726c47 (patch) | |
| tree | 06dc516ca6c4e60bc841cfe49cfda089ef1fc005 /src/qt/splashscreen.h | |
| parent | qt: Show window while shutting down (diff) | |
| download | discoin-35ecf854c084c248ad640c6af030a9d1ed726c47.tar.xz discoin-35ecf854c084c248ad640c6af030a9d1ed726c47.zip | |
qt: Remove global references in bitcoin.cpp
Remove the need for global references `guiref` and
`splashref` by making the BitcoinGUI and SplashScreen
classes register for the UI interface signals themselves.
Diffstat (limited to 'src/qt/splashscreen.h')
| -rw-r--r-- | src/qt/splashscreen.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qt/splashscreen.h b/src/qt/splashscreen.h index 070e376c9..6bc10e60a 100644 --- a/src/qt/splashscreen.h +++ b/src/qt/splashscreen.h @@ -15,6 +15,17 @@ class SplashScreen : public QSplashScreen public: explicit SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f, bool isTestNet); + ~SplashScreen(); + +public slots: + /** Slot to call finish() method as it's not defined as slot */ + void slotFinish(QWidget *mainWin); + +private: + /** Connect core signals to splash screen */ + void subscribeToCoreSignals(); + /** Disconnect core signals to splash screen */ + void unsubscribeFromCoreSignals(); }; #endif // SPLASHSCREEN_H |