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

#include <newsuppressiondialog.h>

Inheritance diagram for NewSuppressionDialog:

Public Member Functions

 NewSuppressionDialog (QWidget *parent=nullptr)
 
 NewSuppressionDialog (const NewSuppressionDialog &)=delete
 
 ~NewSuppressionDialog () override
 
NewSuppressionDialogoperator= (const NewSuppressionDialog &)=delete
 
SuppressionList::Suppression getSuppression () const
 Translate the user input in the GUI into a suppression. More...
 
void setSuppression (const SuppressionList::Suppression &suppression)
 Update the GUI so it corresponds with the given Cppcheck suppression. More...
 

Private Attributes

Ui::NewSuppressionDialog * mUI
 

Detailed Description

Definition at line 33 of file newsuppressiondialog.h.

Constructor & Destructor Documentation

◆ NewSuppressionDialog() [1/2]

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

Definition at line 36 of file newsuppressiondialog.cpp.

References CppCheck::getErrorMessages(), ErrorMessage::id, and mUI.

◆ NewSuppressionDialog() [2/2]

NewSuppressionDialog::NewSuppressionDialog ( const NewSuppressionDialog )
delete

◆ ~NewSuppressionDialog()

NewSuppressionDialog::~NewSuppressionDialog ( )
override

Definition at line 60 of file newsuppressiondialog.cpp.

References mUI.

Member Function Documentation

◆ getSuppression()

SuppressionList::Suppression NewSuppressionDialog::getSuppression ( ) const

◆ operator=()

NewSuppressionDialog& NewSuppressionDialog::operator= ( const NewSuppressionDialog )
delete

◆ setSuppression()

void NewSuppressionDialog::setSuppression ( const SuppressionList::Suppression suppression)

Update the GUI so it corresponds with the given Cppcheck suppression.

Parameters
suppressionCppcheck suppression

Definition at line 78 of file newsuppressiondialog.cpp.

References SuppressionList::Suppression::errorId, SuppressionList::Suppression::fileName, SuppressionList::Suppression::lineNumber, mUI, and SuppressionList::Suppression::symbolName.

Referenced by ProjectFileDialog::editSuppression().

Member Data Documentation

◆ mUI

Ui::NewSuppressionDialog* NewSuppressionDialog::mUI
private

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