From 838efd394561e804125fda13845cd32e95a5c61c Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sat, 9 Sep 2023 15:06:58 +0200 Subject: [PATCH] Show status message in the status bar of the GUI. --- mainwindow.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 28995e2..7952aea 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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); +}