refs #485, moved central GUI functionality to sGui

* allow to send status message to main window (from everywhere)
* Use sGui::changedStylesheet where possible
* message when model is stashed
* improved application startup
This commit is contained in:
Klaus Basan
2016-03-13 18:14:19 +00:00
committed by Mathew Sutcliffe
parent b1353cefd4
commit fb046ae1fb
24 changed files with 181 additions and 36 deletions

View File

@@ -92,6 +92,7 @@ namespace BlackGui
Q_ASSERT_X(this->m_statusBarIcon, Q_FUNC_INFO, "Missing status bar icon");
Q_ASSERT_X(this->m_statusBar, Q_FUNC_INFO, "Missing status bar");
// used with log subscriber, make sure it is not displayed twice
if (statusMessage.wasHandledBy(this)) { return; }
statusMessage.markAsHandledBy(this);
@@ -111,7 +112,7 @@ namespace BlackGui
void CManagedStatusBar::displayStatusMessages(const BlackMisc::CStatusMessageList &statusMessages)
{
foreach(CStatusMessage m, statusMessages)
foreach (CStatusMessage m, statusMessages)
{
displayStatusMessage(m);
}