Show status message in the status bar of the GUI.

This commit is contained in:
Gerhard Hoffmann 2023-09-09 15:06:58 +02:00
parent 9a65cb4456
commit 838efd3945

View File

@ -412,8 +412,16 @@ void MainWindow::onReplaceLast(QString text, QString suffix) {
scrollDownTextEdit();
}
void MainWindow::onShowErrorMessage(QString title, QString text) {
void MainWindow::onShowMessage(QString title, QString text) {
this->statusBar()->clearMessage();
this->statusBar()->showMessage( // timeout: 10000
QString(title + " " + text).leftJustified(80, ' '), 10000);
}
void MainWindow::onShowErrorMessage(QString title, QString text) {
onShowMessage(title, text);
}
void MainWindow::onShowStatusMessage(QString title, QString text) {
onShowMessage(title, text);
}