Splash screen messages for web data services

This commit is contained in:
Klaus Basan
2018-12-28 00:54:40 +01:00
committed by Mat Sutcliffe
parent 8c3faa4ca9
commit 400a8fc2a8
4 changed files with 26 additions and 6 deletions

View File

@@ -96,6 +96,9 @@ namespace BlackGui
// notify when app goes down
connect(qGuiApp, &QGuiApplication::lastWindowClosed, this, &CGuiApplication::gracefulShutdown);
// follow up on web data services
connect(this, &CApplication::webDataServicesStarted, this, &CGuiApplication::onWebDataServicesStarted);
if (!sGui)
{
CGuiApplication::registerMetadata();
@@ -109,6 +112,8 @@ namespace BlackGui
connect(&m_styleSheetUtility, &CStyleSheetUtility::styleSheetsChanged, this, &CGuiApplication::onStyleSheetsChanged, Qt::QueuedConnection);
connect(this, &CGuiApplication::startUpCompleted, this, &CGuiApplication::superviseWindowMinSizes, Qt::QueuedConnection);
// splash screen
connect(this->getSetupReader(), &CSetupReader::setupLoadingMessages, this, &CGuiApplication::displaySplashMessages, Qt::QueuedConnection);
}
}
@@ -1112,6 +1117,14 @@ namespace BlackGui
m_fontPointSize = font.pointSize();
}
void CGuiApplication::onWebDataServicesStarted(bool success)
{
if (success)
{
connect(this->getWebDataServices(), &CWebDataServices::databaseReaderMessages, this, &CGuiApplication::displaySplashMessages, Qt::QueuedConnection);
}
}
void CGuiApplication::superviseWindowMinSizes()
{
CGuiUtility::superviseMainWindowMinSizes();