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)
|
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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue