From 1454a8d4e72d59946e953b9ce802f01203853fcb Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Tue, 8 Oct 2024 12:10:10 +0200 Subject: [PATCH 1/3] About-Dialog - Log: Show most recent log file by default --- sources/ui/aboutqetdialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/ui/aboutqetdialog.cpp b/sources/ui/aboutqetdialog.cpp index b45b10ff7..72e6266dd 100644 --- a/sources/ui/aboutqetdialog.cpp +++ b/sources/ui/aboutqetdialog.cpp @@ -218,6 +218,7 @@ void AboutQETDialog::setLoginfo() { ui->m_log_comboBox->addItem(fileInfo.absoluteFilePath()); } + ui->m_log_comboBox->setCurrentIndex(ui->m_log_comboBox->count() - 1); } /** From 7918cbb7ab97dba5a4aeda581da5e2980c653dac Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Tue, 8 Oct 2024 12:21:45 +0200 Subject: [PATCH 2/3] remove unneeded #include --- sources/qet_elementscaler/qet_elementscaler.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/sources/qet_elementscaler/qet_elementscaler.cpp b/sources/qet_elementscaler/qet_elementscaler.cpp index e7356e905..5e5921f38 100644 --- a/sources/qet_elementscaler/qet_elementscaler.cpp +++ b/sources/qet_elementscaler/qet_elementscaler.cpp @@ -23,7 +23,6 @@ #include #include #include -#include /** * @brief QET_ElementScaler From b9c9d0e31f4c074ef6415df85048ead8d79c042f Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Tue, 8 Oct 2024 12:48:02 +0200 Subject: [PATCH 3/3] About-Dialog - Log: Scroll to most recent log-entry --- sources/ui/aboutqetdialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/ui/aboutqetdialog.cpp b/sources/ui/aboutqetdialog.cpp index 72e6266dd..8681c1b8b 100644 --- a/sources/ui/aboutqetdialog.cpp +++ b/sources/ui/aboutqetdialog.cpp @@ -264,4 +264,5 @@ void AboutQETDialog::on_m_log_comboBox_currentTextChanged(const QString &arg1) ui->m_log_textEdit->setPlainText(log_File.readAll()); } log_File.close(); + ui->m_log_textEdit->moveCursor(QTextCursor::End); }