diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-10-09 11:04:49 +0200 |
---|---|---|
committer | jtimon <jtimon@blockstream.io> | 2014-10-10 11:00:59 +0200 |
commit | 6de50c3c9a89e72f3152a1df7775572d5c8ad0e7 (patch) | |
tree | cf708c7b5b7800b295aeb5bcdb3d742f79b6a31b /src/qt/splashscreen.h | |
parent | dec58922d07241f0b502c96f8e5131abccbd5dc1 (diff) |
qt: add network-specific style object
Mainly cleanups: Gets rid of isTestNet everywhere, by keeping track
of network-specific theming in a central place.
Also makes GUI no longer dependent on the network ID enumeration, which
alleviates concerns about #4802.
Diffstat (limited to 'src/qt/splashscreen.h')
-rw-r--r-- | src/qt/splashscreen.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/splashscreen.h b/src/qt/splashscreen.h index 89c21e6457..128edadbee 100644 --- a/src/qt/splashscreen.h +++ b/src/qt/splashscreen.h @@ -7,6 +7,8 @@ #include <QSplashScreen> +class NetworkStyle; + /** Class for the splashscreen with information of the running client. * * @note this is intentionally not a QSplashScreen. Bitcoin Core initialization @@ -18,7 +20,7 @@ class SplashScreen : public QWidget Q_OBJECT public: - explicit SplashScreen(Qt::WindowFlags f, bool isTestNet); + explicit SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle); ~SplashScreen(); protected: |