From fbffdc923faecf0bd0073cefbad33a5893ed19c3 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 29 Nov 2023 14:17:28 +0100 Subject: [PATCH] Minor: When appendig text, scroll down the text edit. --- mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index daf3969..e9bfe2e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -208,13 +208,12 @@ void MainWindow::onAppendText(QString text, QString suffix) { // Utils::printLineEditInfo(editText.split('\n', QString::SplitBehavior::SkipEmptyParts)); // ui->updateStatus->setText(editText.trimmed()); - // scrollDownTextEdit(); + scrollDownTextEdit(); } void MainWindow::onReplaceLast(QStringList newTextLines, QString suffix) { // Utils::printInfoMsg(QString("ON REPLACE LAST (LIST) CALLED AT ") // + QDateTime::currentDateTime().toString(Qt::ISODateWithMs)); - int const s = newTextLines.size(); if (s > 0) { QString editText = ui->updateStatus->toPlainText();