MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / showStatistics

Method showStatistics

gui/mainwindow.cpp:2048–2060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2046}
2047
2048void MainWindow::showStatistics()
2049{
2050 StatsDialog statsDialog(this);
2051
2052 // Show a dialog with the previous scan statistics and project information
2053 statsDialog.setProject(mProjectFile);
2054 statsDialog.setPathSelected(mCurrentDirectory);
2055 statsDialog.setNumberOfFilesScanned(mThread->getPreviousFilesCount());
2056 statsDialog.setScanDuration(mThread->getPreviousScanDuration() / 1000.0);
2057 statsDialog.setStatistics(mUI->mResults->getStatistics());
2058
2059 statsDialog.exec();
2060}
2061
2062void MainWindow::showLibraryEditor()
2063{

Callers

nothing calls this directly

Calls 8

setPathSelectedMethod · 0.80
getPreviousFilesCountMethod · 0.80
setScanDurationMethod · 0.80
setStatisticsMethod · 0.80
getStatisticsMethod · 0.80
setProjectMethod · 0.45

Tested by

no test coverage detected