Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | window = | ||||
new BitcoinGUI(m_node, config, platformStyle, networkStyle, nullptr); | new BitcoinGUI(m_node, config, platformStyle, networkStyle, nullptr); | ||||
pollShutdownTimer = new QTimer(window); | pollShutdownTimer = new QTimer(window); | ||||
connect(pollShutdownTimer, &QTimer::timeout, window, | connect(pollShutdownTimer, &QTimer::timeout, window, | ||||
&BitcoinGUI::detectShutdown); | &BitcoinGUI::detectShutdown); | ||||
} | } | ||||
void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle) { | void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle) { | ||||
SplashScreen *splash = new SplashScreen(m_node, nullptr, networkStyle); | SplashScreen *splash = new SplashScreen(m_node, networkStyle); | ||||
// We don't hold a direct pointer to the splash screen after creation, but | // We don't hold a direct pointer to the splash screen after creation, but | ||||
// the splash screen will take care of deleting itself when slotFinish | // the splash screen will take care of deleting itself when slotFinish | ||||
// happens. | // happens. | ||||
splash->show(); | splash->show(); | ||||
connect(this, &BitcoinApplication::splashFinished, splash, | connect(this, &BitcoinApplication::splashFinished, splash, | ||||
&SplashScreen::slotFinish); | &SplashScreen::slotFinish); | ||||
connect(this, &BitcoinApplication::requestedShutdown, splash, | connect(this, &BitcoinApplication::requestedShutdown, splash, | ||||
&QWidget::close); | &QWidget::close); | ||||
▲ Show 20 Lines • Show All 506 Lines • Show Last 20 Lines |