0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-09 10:43:19 -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)
{
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
// screen will take care of deleting itself when finish() happens.
m_splash->show();

View file

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

View file

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