Changeset View
Changeset View
Standalone View
Standalone View
src/qt/splashscreen.cpp
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | if (ev->type() == QEvent::KeyPress) { | ||||
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(ev); | QKeyEvent *keyEvent = static_cast<QKeyEvent *>(ev); | ||||
if (keyEvent->text()[0] == 'q') { | if (keyEvent->text()[0] == 'q') { | ||||
m_node.startShutdown(); | m_node.startShutdown(); | ||||
} | } | ||||
} | } | ||||
return QObject::eventFilter(obj, ev); | return QObject::eventFilter(obj, ev); | ||||
} | } | ||||
void SplashScreen::slotFinish(QWidget *mainWin) { | void SplashScreen::finish() { | ||||
Q_UNUSED(mainWin); | |||||
/* If the window is minimized, hide() will be ignored. */ | /* If the window is minimized, hide() will be ignored. */ | ||||
/* Make sure we de-minimize the splashscreen window before hiding */ | /* Make sure we de-minimize the splashscreen window before hiding */ | ||||
if (isMinimized()) { | if (isMinimized()) { | ||||
showNormal(); | showNormal(); | ||||
} | } | ||||
hide(); | hide(); | ||||
// No more need for this | // No more need for this | ||||
deleteLater(); | deleteLater(); | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |