| 368 | } |
| 369 | |
| 370 | void 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 |
| 384 | QChartView *createChart(const QString &statsFile, const QString &tool) |
no test coverage detected