Changeset View
Changeset View
Standalone View
Standalone View
src/qt/splashscreen.cpp
Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | if (isMinimized()) { | ||||
showNormal(); | showNormal(); | ||||
} | } | ||||
hide(); | hide(); | ||||
// No more need for this | // No more need for this | ||||
deleteLater(); | 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, | bool invoked = 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))); | ||||
assert(invoked); | |||||
} | } | ||||
static void ShowProgress(SplashScreen *splash, const std::string &title, | static void ShowProgress(SplashScreen *splash, const std::string &title, | ||||
int nProgress, bool resume_possible) { | int nProgress, bool resume_possible) { | ||||
InitMessage( | InitMessage( | ||||
splash, | splash, | ||||
title + std::string("\n") + | title + std::string("\n") + | ||||
(resume_possible | (resume_possible | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |