From d392d35909ffff92b1b8ccdedf1bd61e9a8a4b64 Mon Sep 17 00:00:00 2001 From: Viktor Kopp Date: Mon, 23 Dec 2024 22:13:10 +0100 Subject: [PATCH] rm dead code Signed-off-by: Viktor Kopp --- src/mainwindow.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e85aa938..55c7121d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -56,9 +56,7 @@ * Must be a "C" include to interpret the imports correctly * for MSVC compilers. **/ -#include "dlt_common.h" extern "C" { - #include "dlt_user.h" } @@ -7863,8 +7861,6 @@ void MainWindow::on_actionJump_To_triggered() } jump_to_line(dlg.getIndex()); - - } @@ -8227,18 +8223,10 @@ void MainWindow::on_actionDefault_Filter_Reload_triggered() /* load the default filter list */ defaultFilter.load(dir.absolutePath()); - QStringList completerList; - - /* default filter list update combobox */ - QDltFilterList *filterList; - foreach(filterList,defaultFilter.defaultFilterList){ + // default filter list update combobox + for (const auto *filterList : defaultFilter.defaultFilterList) { ui->comboBoxFilterSelection->addItem(filterList->getFilename()); - completerList << filterList->getFilename(); } - //QCompleter *completer = new QCompleter(completerList, this); - //completer->setFilterMode(Qt::MatchContains); - //completer->setCaseSensitivity(Qt::CaseInsensitive); - //ui->comboBoxFilterSelection->setCompleter(completer); } void MainWindow::on_actionDefault_Filter_Create_Index_triggered()