diff --git a/mainwindow.cpp b/mainwindow.cpp index 4df9734..bb4e30e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -330,8 +330,8 @@ void MainWindow::onQuit() { } void MainWindow::scrollDownTextEdit() { - Utils::printInfoMsg(QString("SCROLL-DOWN-TEXT_EDIT CALLED AT ") - + QDateTime::currentDateTime().toString(Qt::ISODateWithMs)); + // Utils::printInfoMsg(QString("SCROLL-DOWN-TEXT_EDIT CALLED AT ") + // + QDateTime::currentDateTime().toString(Qt::ISODateWithMs)); ui->updateStatus->setEnabled(true); @@ -342,10 +342,12 @@ void MainWindow::scrollDownTextEdit() { } void MainWindow::onAppendText(QString text, QString suffix) { - Utils::printInfoMsg(QString("ON APPEND CALLED AT ") - + QDateTime::currentDateTime().toString(Qt::ISODateWithMs)); + // Utils::printInfoMsg(QString("ON APPEND CALLED AT ") + // + QDateTime::currentDateTime().toString(Qt::ISODateWithMs)); QString editText = ui->updateStatus->toPlainText(); + scrollDownTextEdit(); + if (!suffix.isNull() && suffix.size() > 0) { //qInfo() << "TEXT" << text << "SUFFIX" << suffix; if (suffix == Worker::UPDATE_STEP_SUCCESS || suffix == Worker::UPDATE_STEP_FAIL) { @@ -367,12 +369,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)); + // Utils::printInfoMsg(QString("ON REPLACE LAST (LIST) CALLED AT ") + // + QDateTime::currentDateTime().toString(Qt::ISODateWithMs)); int const s = newTextLines.size(); if (s > 0) { @@ -406,8 +408,8 @@ void MainWindow::onReplaceLast(QStringList newTextLines, QString suffix) { } void MainWindow::onReplaceLast(QString text, QString suffix) { - Utils::printInfoMsg(QString("ON REPLACE LAST (TEXT) CALLED AT ") - + QDateTime::currentDateTime().toString(Qt::ISODateWithMs)); + // Utils::printInfoMsg(QString("ON REPLACE LAST (TEXT) CALLED AT ") + // + QDateTime::currentDateTime().toString(Qt::ISODateWithMs)); QString editText = ui->updateStatus->toPlainText(); QStringList lines = editText.split('\n', QString::SplitBehavior::SkipEmptyParts);