0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-10 10:52:31 -05:00

qt, refactor: Fix 'QFlags is deprecated' warnings

This commit is contained in:
Hennadii Stepanov 2020-08-09 18:33:54 +03:00
parent fa5749c805
commit 8e12d69961
No known key found for this signature in database
GPG key ID: 410108112E7EA81F
3 changed files with 4 additions and 4 deletions

View file

@ -262,7 +262,7 @@ void BitcoinApplication::createWindow(const NetworkStyle *networkStyle)
void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle) void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle)
{ {
assert(!m_splash); assert(!m_splash);
m_splash = new SplashScreen(nullptr, networkStyle); m_splash = new SplashScreen(networkStyle);
// We don't hold a direct pointer to the splash screen after creation, but the splash // We don't hold a direct pointer to the splash screen after creation, but the splash
// screen will take care of deleting itself when finish() happens. // screen will take care of deleting itself when finish() happens.
m_splash->show(); m_splash->show();

View file

@ -24,8 +24,8 @@
#include <QScreen> #include <QScreen>
SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle) : SplashScreen::SplashScreen(const NetworkStyle* networkStyle)
QWidget(nullptr, f), curAlignment(0) : QWidget(), curAlignment(0)
{ {
// set reference point, paddings // set reference point, paddings
int paddingRight = 50; int paddingRight = 50;

View file

@ -28,7 +28,7 @@ class SplashScreen : public QWidget
Q_OBJECT Q_OBJECT
public: public:
explicit SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle); explicit SplashScreen(const NetworkStyle *networkStyle);
~SplashScreen(); ~SplashScreen();
void setNode(interfaces::Node& node); void setNode(interfaces::Node& node);