Cppcheck
|
A dialog that shows project and scan statistics. More...
#include <statsdialog.h>
Public Member Functions | |
StatsDialog (QWidget *parent=nullptr) | |
~StatsDialog () override | |
void | setProject (const ProjectFile *projectFile) |
Sets the project to extract statistics from. More... | |
void | setPathSelected (const QString &path) |
Sets the string to display beside "Path Selected:". More... | |
void | setNumberOfFilesScanned (int num) |
Sets the number to display beside "Number of Files Scanned:". More... | |
void | setScanDuration (double seconds) |
Sets the number of seconds to display beside "Scan Duration:". More... | |
void | setStatistics (const CheckStatistics *stats) |
Sets the numbers of different error/warnings found. More... | |
Private Slots | |
void | copyToClipboard () |
void | pdfExport () |
Private Attributes | |
Ui::StatsDialog * | mUI |
const CheckStatistics * | mStatistics {} |
A dialog that shows project and scan statistics.
Definition at line 40 of file statsdialog.h.
|
explicit |
Definition at line 74 of file statsdialog.cpp.
References copyToClipboard(), mUI, and pdfExport().
|
override |
Definition at line 90 of file statsdialog.cpp.
References mUI.
|
privateslot |
Definition at line 216 of file statsdialog.cpp.
References CPPCHECK(), CheckStatistics::getCount(), information, mStatistics, mUI, performance, portability, ShowTypes::ShowErrors, ShowTypes::ShowInformation, ShowTypes::ShowPerformance, ShowTypes::ShowPortability, ShowTypes::ShowStyle, ShowTypes::ShowWarnings, and style.
Referenced by StatsDialog().
|
privateslot |
Definition at line 175 of file statsdialog.cpp.
References CPPCHECK(), CheckStatistics::getCount(), mStatistics, ShowTypes::ShowErrors, ShowTypes::ShowInformation, ShowTypes::ShowPerformance, ShowTypes::ShowPortability, ShowTypes::ShowStyle, ShowTypes::ShowWarnings, and toString().
Referenced by StatsDialog().
void StatsDialog::setNumberOfFilesScanned | ( | int | num | ) |
Sets the number to display beside "Number of Files Scanned:".
Definition at line 142 of file statsdialog.cpp.
References mUI.
Referenced by MainWindow::showStatistics().
void StatsDialog::setPathSelected | ( | const QString & | path | ) |
Sets the string to display beside "Path Selected:".
Definition at line 137 of file statsdialog.cpp.
References mUI.
Referenced by MainWindow::showStatistics().
void StatsDialog::setProject | ( | const ProjectFile * | projectFile | ) |
Sets the project to extract statistics from.
Definition at line 95 of file statsdialog.cpp.
References CLANG_ANALYZER, CLANG_TIDY, ProjectFile::getBuildDir(), ProjectFile::getCheckPaths(), ProjectFile::getClangAnalyzer(), ProjectFile::getClangTidy(), ProjectFile::getDefines(), ProjectFile::getFilename(), ProjectFile::getIncludeDirs(), ProjectFile::getRootPath(), ProjectFile::getUndefines(), and mUI.
Referenced by MainWindow::showStatistics().
void StatsDialog::setScanDuration | ( | double | seconds | ) |
Sets the number of seconds to display beside "Scan Duration:".
Definition at line 147 of file statsdialog.cpp.
References mUI.
Referenced by MainWindow::showStatistics().
void StatsDialog::setStatistics | ( | const CheckStatistics * | stats | ) |
Sets the numbers of different error/warnings found.
"
Definition at line 371 of file statsdialog.cpp.
References CPPCHECK(), CheckStatistics::getCheckersReport(), CheckStatistics::getCount(), CheckStatistics::getNumberOfActiveCheckers(), mStatistics, mUI, ShowTypes::ShowErrors, ShowTypes::ShowInformation, ShowTypes::ShowPerformance, ShowTypes::ShowPortability, ShowTypes::ShowStyle, and ShowTypes::ShowWarnings.
Referenced by MainWindow::showStatistics().
|
private |
Definition at line 76 of file statsdialog.h.
Referenced by copyToClipboard(), pdfExport(), and setStatistics().
|
private |
Definition at line 75 of file statsdialog.h.
Referenced by copyToClipboard(), setNumberOfFilesScanned(), setPathSelected(), setProject(), setScanDuration(), setStatistics(), StatsDialog(), and ~StatsDialog().