Changeset View
Changeset View
Standalone View
Standalone View
src/qt/splashscreen.cpp
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | if (m_node) { | ||||
unsubscribeFromCoreSignals(); | unsubscribeFromCoreSignals(); | ||||
} | } | ||||
} | } | ||||
void SplashScreen::setNode(interfaces::Node &node) { | void SplashScreen::setNode(interfaces::Node &node) { | ||||
assert(!m_node); | assert(!m_node); | ||||
m_node = &node; | m_node = &node; | ||||
subscribeToCoreSignals(); | subscribeToCoreSignals(); | ||||
if (m_shutdown) { | |||||
m_node->startShutdown(); | |||||
} | |||||
} | } | ||||
void SplashScreen::shutdown() { | void SplashScreen::shutdown() { | ||||
m_shutdown = true; | |||||
if (m_node) { | if (m_node) { | ||||
m_node->startShutdown(); | m_node->startShutdown(); | ||||
} | } | ||||
} | } | ||||
bool SplashScreen::eventFilter(QObject *obj, QEvent *ev) { | bool SplashScreen::eventFilter(QObject *obj, QEvent *ev) { | ||||
if (ev->type() == QEvent::KeyPress) { | if (ev->type() == QEvent::KeyPress) { | ||||
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(ev); | QKeyEvent *keyEvent = static_cast<QKeyEvent *>(ev); | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |