Changeset View
Changeset View
Standalone View
Standalone View
src/qt/splashscreen.cpp
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | bool SplashScreen::eventFilter(QObject *obj, QEvent *ev) { | ||||
return QObject::eventFilter(obj, ev); | return QObject::eventFilter(obj, ev); | ||||
} | } | ||||
void SplashScreen::slotFinish(QWidget *mainWin) { | void SplashScreen::slotFinish(QWidget *mainWin) { | ||||
Q_UNUSED(mainWin); | 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()) showNormal(); | if (isMinimized()) { | ||||
showNormal(); | |||||
} | |||||
hide(); | hide(); | ||||
deleteLater(); // No more need for this | // No more need for this | ||||
deleteLater(); | |||||
} | } | ||||
static void InitMessage(SplashScreen *splash, const std::string &message) { | static void InitMessage(SplashScreen *splash, const std::string &message) { | ||||
QMetaObject::invokeMethod(splash, "showMessage", Qt::QueuedConnection, | QMetaObject::invokeMethod(splash, "showMessage", Qt::QueuedConnection, | ||||
Q_ARG(QString, QString::fromStdString(message)), | Q_ARG(QString, QString::fromStdString(message)), | ||||
Q_ARG(int, Qt::AlignBottom | Qt::AlignHCenter), | Q_ARG(int, Qt::AlignBottom | Qt::AlignHCenter), | ||||
Q_ARG(QColor, QColor(55, 55, 55))); | Q_ARG(QColor, QColor(55, 55, 55))); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |