|
53 | 53 | #include "threadresult.h" |
54 | 54 | #include "translationhandler.h" |
55 | 55 | #include "utils.h" |
| 56 | +#include "threaddetails.h" |
56 | 57 |
|
57 | 58 | #include "ui_mainwindow.h" |
58 | 59 |
|
@@ -183,6 +184,7 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) : |
183 | 184 | connect(mUI->mActionShowHidden, &QAction::triggered, mUI->mResults, &ResultsView::showHiddenResults); |
184 | 185 | connect(mUI->mActionViewStats, &QAction::triggered, this, &MainWindow::showStatistics); |
185 | 186 | connect(mUI->mActionLibraryEditor, &QAction::triggered, this, &MainWindow::showLibraryEditor); |
| 187 | + connect(mUI->mActionShowThreadDetails, &QAction::triggered, this, &MainWindow::showThreadDetails); |
186 | 188 |
|
187 | 189 | connect(mUI->mActionReanalyzeModified, &QAction::triggered, this, &MainWindow::reAnalyzeModified); |
188 | 190 | connect(mUI->mActionReanalyzeAll, &QAction::triggered, this, &MainWindow::reAnalyzeAll); |
@@ -1069,6 +1071,7 @@ bool MainWindow::getCppcheckSettings(Settings& settings, Suppressions& supprs) |
1069 | 1071 |
|
1070 | 1072 | settings.exename = QCoreApplication::applicationFilePath().toStdString(); |
1071 | 1073 | settings.templateFormat = "{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]"; |
| 1074 | + settings.reportProgress = 10; |
1072 | 1075 |
|
1073 | 1076 | // default to --check-level=normal for GUI for now |
1074 | 1077 | settings.setCheckLevel(Settings::CheckLevel::normal); |
@@ -2109,6 +2112,20 @@ void MainWindow::showLibraryEditor() |
2109 | 2112 | libraryDialog.exec(); |
2110 | 2113 | } |
2111 | 2114 |
|
| 2115 | +void MainWindow::showThreadDetails() |
| 2116 | +{ |
| 2117 | + if (ThreadDetails::instance()) |
| 2118 | + return; |
| 2119 | + auto* threadDetails = new ThreadDetails(this); |
| 2120 | + connect(mThread, &ThreadHandler::threadDetailsUpdated, |
| 2121 | + threadDetails, &ThreadDetails::threadDetailsUpdated, Qt::QueuedConnection); |
| 2122 | + connect(mThread, &ThreadHandler::progress, |
| 2123 | + threadDetails, &ThreadDetails::progress, Qt::QueuedConnection); |
| 2124 | + threadDetails->setAttribute(Qt::WA_DeleteOnClose); |
| 2125 | + threadDetails->show(); |
| 2126 | + mThread->emitThreadDetailsUpdated(); |
| 2127 | +} |
| 2128 | + |
2112 | 2129 | void MainWindow::filterResults() |
2113 | 2130 | { |
2114 | 2131 | mUI->mResults->filterResults(mLineEditFilter->text()); |
|
0 commit comments