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

Method setStatistics

gui/statsdialog.cpp:370–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void StatsDialog::setStatistics(const CheckStatistics *stats)
371{
372 mStatistics = stats;
373 mUI->mLblErrors->setText(QString::number(stats->getCount(CPPCHECK,ShowTypes::ShowErrors)));
374 mUI->mLblWarnings->setText(QString::number(stats->getCount(CPPCHECK,ShowTypes::ShowWarnings)));
375 mUI->mLblStyle->setText(QString::number(stats->getCount(CPPCHECK,ShowTypes::ShowStyle)));
376 mUI->mLblPortability->setText(QString::number(stats->getCount(CPPCHECK,ShowTypes::ShowPortability)));
377 mUI->mLblPerformance->setText(QString::number(stats->getCount(CPPCHECK,ShowTypes::ShowPerformance)));
378 mUI->mLblInformation->setText(QString::number(stats->getCount(CPPCHECK,ShowTypes::ShowInformation)));
379 mUI->mLblActiveCheckers->setText(QString::number(stats->getNumberOfActiveCheckers()));
380 mUI->mCheckersReport->setPlainText(stats->getCheckersReport());
381}
382
383#ifdef QT_CHARTS_LIB
384QChartView *createChart(const QString &statsFile, const QString &tool)

Callers 1

showStatisticsMethod · 0.80

Calls 2

getCountMethod · 0.45

Tested by

no test coverage detected