Skip to content

Implement #14290: GUI: detailed progress view that shows what files the threads are working on#8167

Open
ludviggunne wants to merge 8 commits intodanmar:mainfrom
ludviggunne:14290
Open

Implement #14290: GUI: detailed progress view that shows what files the threads are working on#8167
ludviggunne wants to merge 8 commits intodanmar:mainfrom
ludviggunne:14290

Conversation

@ludviggunne
Copy link
Collaborator

No description provided.

@ludviggunne ludviggunne force-pushed the 14290 branch 3 times, most recently from f2aed22 to 775af90 Compare January 31, 2026 16:31
@ludviggunne
Copy link
Collaborator Author

image

@ludviggunne ludviggunne force-pushed the 14290 branch 2 times, most recently from 076e2a0 to d02ffb7 Compare January 31, 2026 18:25
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2026

selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=file-total -D__GNUC__ --error-exitcode=1 --inline-suppr --suppressions-list=.selfcheck_suppressions --library=gnu --inconclusive --enable=style,performance,portability,warning,missingInclude,information --exception-handling --debug-warnings --check-level=exhaustive"
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
gui_options="-DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=68 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --library=qt"
gui_options="$gui_options --suppress=functionStatic:cmake.output/gui/ui_threaddetails.h:44"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically I feel that we can suppress all functionStatic all ui_*.h files it does not feel interesting to see those warnings in these files.

In .selfcheck_suppressions we have this already:

functionStatic:*/ui_fileview.h

so I suggest that you tweak .selfcheck_suppressions..

const std::string& fname = file->spath();
qDebug() << "Checking file" << QString::fromStdString(fname);

const Details details = { mThreadIndex, fname, QTime::currentTime(), };
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the =. It makes it more explicit that no assignment operator is executed if you remove that imho.


public:
struct Details {
int index;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index => threadIndex

public:
struct Details {
int index;
std::string file;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in Qt code you typically prefer to switch to QString unless you have reasons to stick with std::string.


void stop();

void setThreadIndex(int index);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why the thread index isn't passed to the CheckThread constructor instead. it could then be a const member.


ThreadDetails::~ThreadDetails()
{
delete mUi;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the feeling that this destructor is never called. The window is not destroyed just because it is closed.


void MainWindow::showThreadDetails()
{
auto *td = new ThreadDetails;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this code, you can create several ThreadDetails windows.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Problem:

  1. I create a ThreadDetails window
  2. I close MainWindow
  3. The main windows is closed but the thread details window keeps running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants