Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 352 Lines • ▼ Show 20 Lines | void BitcoinApplication::createWindow(const Config *config, | ||||
window = new BitcoinGUI(m_node, config, platformStyle, networkStyle, 0); | window = new BitcoinGUI(m_node, config, platformStyle, networkStyle, 0); | ||||
pollShutdownTimer = new QTimer(window); | pollShutdownTimer = new QTimer(window); | ||||
connect(pollShutdownTimer, SIGNAL(timeout()), window, | connect(pollShutdownTimer, SIGNAL(timeout()), window, | ||||
SLOT(detectShutdown())); | SLOT(detectShutdown())); | ||||
} | } | ||||
void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle) { | void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle) { | ||||
SplashScreen *splash = new SplashScreen(0, networkStyle); | SplashScreen *splash = new SplashScreen(m_node, 0, 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, SIGNAL(splashFinished(QWidget *)), splash, | connect(this, SIGNAL(splashFinished(QWidget *)), splash, | ||||
SLOT(slotFinish(QWidget *))); | SLOT(slotFinish(QWidget *))); | ||||
connect(this, SIGNAL(requestedShutdown()), splash, SLOT(close())); | connect(this, SIGNAL(requestedShutdown()), splash, SLOT(close())); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 430 Lines • Show Last 20 Lines |