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); +}