Changeset View
Changeset View
Standalone View
Standalone View
src/qt/splashscreen.cpp
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | SplashScreen::SplashScreen(const NetworkStyle *networkStyle) | ||||
// Resize window and move to center of desktop, disallow resizing | // Resize window and move to center of desktop, disallow resizing | ||||
QRect r(QPoint(), QSize(pixmap.size().width() / devicePixelRatio, | QRect r(QPoint(), QSize(pixmap.size().width() / devicePixelRatio, | ||||
pixmap.size().height() / devicePixelRatio)); | pixmap.size().height() / devicePixelRatio)); | ||||
resize(r.size()); | resize(r.size()); | ||||
setFixedSize(r.size()); | setFixedSize(r.size()); | ||||
move(QGuiApplication::primaryScreen()->geometry().center() - r.center()); | move(QGuiApplication::primaryScreen()->geometry().center() - r.center()); | ||||
installEventFilter(this); | installEventFilter(this); | ||||
GUIUtil::handleCloseWindowShortcut(this); | |||||
} | } | ||||
SplashScreen::~SplashScreen() { | SplashScreen::~SplashScreen() { | ||||
if (m_node) { | if (m_node) { | ||||
unsubscribeFromCoreSignals(); | unsubscribeFromCoreSignals(); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |