mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Splash screen messages for web data services
This commit is contained in:
committed by
Mat Sutcliffe
parent
8c3faa4ca9
commit
400a8fc2a8
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user