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:
parent
fa5749c805
commit
8e12d69961
3 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue