Receiving errors as status message results in

a pop up message now.
This commit is contained in:
Klaus Basan
2014-01-15 23:52:22 +01:00
parent 4f94f43e0d
commit 2cf097ae2e
3 changed files with 19 additions and 1 deletions

View File

@@ -224,6 +224,8 @@ void MainWindow::displayStatusMessage(const CStatusMessage &message)
{
this->ui->sb_MainStatusBar->showMessage(message.getMessage(), 3000);
this->ui->te_StatusMessages->insertPlainText(message.toQString(true).append("\n"));
if (message.getSeverity() == CStatusMessage::SeverityError) this->displayOverlayInfo(message);
}
/*
@@ -412,3 +414,12 @@ void MainWindow::displayOverlayInfo(const QString &message)
this->m_infoWindow->setInfoMessage(message);
}
}
/*
* Info window by
*/
void MainWindow::displayOverlayInfo(const CStatusMessage &message)
{
this->displayOverlayInfo(message.getMessage());
// further code goes here, such as marking errors as red ...
}