Skip to content

Commit 8e12d69

Browse files
committed
qt, refactor: Fix 'QFlags is deprecated' warnings
1 parent fa5749c commit 8e12d69

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/qt/bitcoin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void BitcoinApplication::createWindow(const NetworkStyle *networkStyle)
262262
void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle)
263263
{
264264
assert(!m_splash);
265-
m_splash = new SplashScreen(nullptr, networkStyle);
265+
m_splash = new SplashScreen(networkStyle);
266266
// We don't hold a direct pointer to the splash screen after creation, but the splash
267267
// screen will take care of deleting itself when finish() happens.
268268
m_splash->show();

src/qt/splashscreen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#include <QScreen>
2525

2626

27-
SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle) :
28-
QWidget(nullptr, f), curAlignment(0)
27+
SplashScreen::SplashScreen(const NetworkStyle* networkStyle)
28+
: QWidget(), curAlignment(0)
2929
{
3030
// set reference point, paddings
3131
int paddingRight = 50;

src/qt/splashscreen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SplashScreen : public QWidget
2828
Q_OBJECT
2929

3030
public:
31-
explicit SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle);
31+
explicit SplashScreen(const NetworkStyle *networkStyle);
3232
~SplashScreen();
3333
void setNode(interfaces::Node& node);
3434

0 commit comments

Comments
 (0)