Cppcheck
Public Member Functions | Private Slots | Private Attributes | List of all members
StatsDialog Class Reference

A dialog that shows project and scan statistics. More...

#include <statsdialog.h>

Inheritance diagram for StatsDialog:

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 CheckStatisticsmStatistics {}
 

Detailed Description

A dialog that shows project and scan statistics.

Definition at line 40 of file statsdialog.h.

Constructor & Destructor Documentation

◆ StatsDialog()

StatsDialog::StatsDialog ( QWidget *  parent = nullptr)
explicit

Definition at line 74 of file statsdialog.cpp.

References copyToClipboard(), mUI, and pdfExport().

◆ ~StatsDialog()

StatsDialog::~StatsDialog ( )
override

Definition at line 90 of file statsdialog.cpp.

References mUI.

Member Function Documentation

◆ copyToClipboard

void StatsDialog::copyToClipboard ( )
privateslot

◆ pdfExport

void StatsDialog::pdfExport ( )
privateslot

◆ setNumberOfFilesScanned()

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().

◆ setPathSelected()

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().

◆ setProject()

void StatsDialog::setProject ( const ProjectFile projectFile)

◆ setScanDuration()

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().

◆ setStatistics()

void StatsDialog::setStatistics ( const CheckStatistics stats)

Member Data Documentation

◆ mStatistics

const CheckStatistics* StatsDialog::mStatistics {}
private

Definition at line 76 of file statsdialog.h.

Referenced by copyToClipboard(), pdfExport(), and setStatistics().

◆ mUI

Ui::StatsDialog* StatsDialog::mUI
private

The documentation for this class was generated from the following files: