Cppcheck
Public Slots | Signals | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
ResultsTree Class Reference

Cppcheck's results are shown in this tree. More...

#include <resultstree.h>

Inheritance diagram for ResultsTree:

Public Slots

void showResults (ShowTypes::ShowType type, bool show)
 Function to show/hide certain type of errors Refreshes the tree. More...
 
void showCppcheckResults (bool show)
 Show/hide cppcheck errors. More...
 
void showClangResults (bool show)
 Show/hide clang-tidy/clang-analyzer errors. More...
 

Signals

void resultsHidden (bool hidden)
 Signal that results have been hidden or shown. More...
 
void checkSelected (QStringList selectedItems)
 Signal to perform selected files recheck. More...
 
void treeSelectionChanged (const QModelIndex &current)
 Signal for selection change in result tree. More...
 
void suppressIds (QStringList ids)
 Suppress Ids. More...
 

Public Member Functions

 ResultsTree (QWidget *parent=nullptr)
 
void initialize (QSettings *settings, ApplicationList *list, ThreadHandler *checkThreadHandler)
 
bool addErrorItem (const ErrorItem &item)
 Add a new item to the tree. More...
 
void clear ()
 Clear all errors from the tree. More...
 
void clear (const QString &filename)
 Clear errors for a specific file from the tree. More...
 
void clearRecheckFile (const QString &filename)
 Clear errors of a file selected for recheck. More...
 
void filterResults (const QString &filter)
 Function to filter the displayed list of errors. More...
 
void showHiddenResults ()
 Function to show results that were previous hidden with HideResult() More...
 
void refreshTree ()
 Refresh tree by checking which of the items should be shown and which should be hidden. More...
 
void saveResults (Report *report) const
 Save results to a text stream. More...
 
void updateFromOldReport (const QString &filename)
 Update items from old report (tag, sinceDate) More...
 
void updateSettings (bool showFullPath, bool saveFullPath, bool saveAllErrors, bool showErrorId, bool showInconclusive)
 Update tree settings. More...
 
void setCheckDirectory (const QString &dir)
 Set the directory we are checking. More...
 
const QString & getCheckDirectory ()
 Get the directory we are checking. More...
 
bool hasVisibleResults () const
 Check if there are any visible results in view. More...
 
bool hasResults () const
 Do we have results from check? More...
 
void saveSettings () const
 Save all settings Column widths. More...
 
void translate ()
 Change all visible texts language. More...
 
void showIdColumn (bool show)
 Show optional column "Id". More...
 
void showInconclusiveColumn (bool show)
 Show optional column "Inconclusve". More...
 
bool showIdColumn () const
 Returns true if column "Id" is shown. More...
 
void keyPressEvent (QKeyEvent *event) override
 

Public Attributes

ShowTypes mShowSeverities
 GUI severities. More...
 

Protected Slots

void quickStartApplication (const QModelIndex &index)
 Slot to quickstart an error with default application. More...
 
void context (int application)
 Slot for context menu item to open an error with specified application. More...
 
void copy ()
 Slot for context menu item to copy selection to clipboard. More...
 
void hideResult ()
 Slot for context menu item to hide the current error message. More...
 
void recheckSelectedFiles ()
 Slot for rechecking selected files. More...
 
void hideAllIdResult ()
 Slot for context menu item to hide all messages with the current message Id. More...
 
void suppressSelectedIds ()
 Slot for context menu item to suppress all messages with the current message id. More...
 
void suppressHash ()
 Slot for context menu item to suppress message with hash. More...
 
void openContainingFolder ()
 Slot for context menu item to open the folder containing the current file. More...
 
void currentChanged (const QModelIndex &current, const QModelIndex &previous) override
 Slot for selection change in the results tree. More...
 

Protected Member Functions

void refreshFilePaths ()
 Hides/shows full file path on all error file items according to mShowFullPath. More...
 
void refreshFilePaths (QStandardItem *item)
 Hides/shows full file path on all error file items according to mShowFullPath. More...
 
QString stripPath (const QString &path, bool saving) const
 Removes checking directory from given path if mShowFullPath is false. More...
 
void saveErrors (Report *report, const QStandardItem *fileItem) const
 Save all errors under specified item. More...
 
void startApplication (const QStandardItem *target, int application=-1)
 Helper function to open an error within target with application*. More...
 
void contextMenuEvent (QContextMenuEvent *e) override
 Context menu event (user right clicked on the tree) More...
 
QStandardItem * addBacktraceFiles (QStandardItem *parent, const ErrorLine &item, const bool hide, const QString &icon, bool childOfMessage)
 Add a new error item beneath a file or a backtrace item beneath an error. More...
 
void loadSettings ()
 Load all settings Column widths. More...
 
QString askFileDir (const QString &file)
 Ask directory where file is located. More...
 
QStandardItem * findFileItem (const QString &name) const
 Finds a file item. More...
 
QStandardItem * ensureFileItem (const QString &fullpath, const QString &file0, bool hide)
 Ensures there's a item in the model for the specified file. More...
 

Static Protected Member Functions

static QString severityToIcon (Severity severity)
 Convert a severity string to a icon filename. More...
 
static QString getFilePath (const QStandardItem *target, bool fullPath)
 Helper function returning the filename/full path of the error tree item target. More...
 
static QString severityToTranslatedString (Severity severity)
 Convert Severity to translated string for GUI. More...
 
static QStandardItem * createNormalItem (const QString &name)
 Create new normal item. More...
 
static QStandardItem * createCheckboxItem (bool checked)
 Create new normal item. More...
 
static QStandardItem * createLineNumberItem (const QString &linenumber)
 Create new line number item. More...
 

Protected Attributes

QStandardItemModel mModel
 Item model for tree. More...
 
QSettings * mSettings {}
 Program settings. More...
 
QString mFilter
 A string used to filter the results for display. More...
 
ApplicationListmApplications {}
 List of applications to open errors with. More...
 
QStandardItem * mContextItem {}
 Right clicked item (used by context menu slots) More...
 
bool mShowFullPath {}
 Should full path of files be shown (true) or relative (false) More...
 
bool mSaveFullPath {}
 Should full path of files be saved. More...
 
bool mSaveAllErrors = true
 Save all errors (true) or only visible (false) More...
 
bool mShowErrorId {}
 true if optional column "Id" is shown More...
 
QString mCheckPath
 Path we are currently checking. More...
 
bool mVisibleErrors {}
 Are there any visible errors. More...
 

Private Member Functions

void tagSelectedItems (const QString &tag)
 tag selected items More...
 
void readErrorItem (const QStandardItem *error, ErrorItem *item) const
 Convert GUI error item into data error item. More...
 

Private Attributes

QStringList mHiddenMessageId
 
QItemSelectionModel * mSelectionModel {}
 
ThreadHandlermThread {}
 
bool mShowCppcheck = true
 
bool mShowClang = true
 

Detailed Description

Cppcheck's results are shown in this tree.

Definition at line 52 of file resultstree.h.

Constructor & Destructor Documentation

◆ ResultsTree()

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

Definition at line 86 of file resultstree.cpp.

References mModel, quickStartApplication(), and translate().

Member Function Documentation

◆ addBacktraceFiles()

QStandardItem * ResultsTree::addBacktraceFiles ( QStandardItem *  parent,
const ErrorLine item,
const bool  hide,
const QString &  icon,
bool  childOfMessage 
)
protected

Add a new error item beneath a file or a backtrace item beneath an error.

Parameters
parentParent for the item. Either a file item or an error item
itemError line data
hideShould this be hidden (true) or shown (false)
iconShould a default backtrace item icon be added
childOfMessageIs this a child element of a message?
Returns
newly created QStandardItem *

Definition at line 259 of file resultstree.cpp.

References createCheckboxItem(), createLineNumberItem(), createNormalItem(), ErrorLine::errorId, ErrorLine::file, ErrorLine::inconclusive, ErrorLine::line, ErrorLine::severity, severityToTranslatedString(), ErrorLine::sinceDate, ErrorLine::summary, and ErrorLine::tags.

Referenced by addErrorItem().

◆ addErrorItem()

bool ResultsTree::addErrorItem ( const ErrorItem item)

◆ askFileDir()

QString ResultsTree::askFileDir ( const QString &  file)
protected

Ask directory where file is located.

Parameters
fileFile name.
Returns
Directory user chose.

Definition at line 847 of file resultstree.cpp.

References getPath(), mCheckPath, setPath(), and SETTINGS_LAST_SOURCE_PATH.

Referenced by recheckSelectedFiles(), and startApplication().

◆ checkSelected

void ResultsTree::checkSelected ( QStringList  selectedItems)
signal

Signal to perform selected files recheck.

Parameters
selectedItemslist of selected files

Referenced by recheckSelectedFiles(), and ResultsView::ResultsView().

◆ clear() [1/2]

void ResultsTree::clear ( )

Clear all errors from the tree.

Definition at line 374 of file resultstree.cpp.

References mModel.

◆ clear() [2/2]

void ResultsTree::clear ( const QString &  filename)

Clear errors for a specific file from the tree.

Definition at line 379 of file resultstree.cpp.

References FILE0, FILENAME, mModel, stripPath(), and toString().

◆ clearRecheckFile()

void ResultsTree::clearRecheckFile ( const QString &  filename)

Clear errors of a file selected for recheck.

Definition at line 397 of file resultstree.cpp.

References FILENAME, mCheckPath, and mModel.

◆ context

void ResultsTree::context ( int  application)
protectedslot

Slot for context menu item to open an error with specified application.

Parameters
applicationIndex of the application to open the error

Definition at line 1135 of file resultstree.cpp.

References mContextItem, and startApplication().

Referenced by contextMenuEvent().

◆ contextMenuEvent()

void ResultsTree::contextMenuEvent ( QContextMenuEvent *  e)
overrideprotected

◆ copy

void ResultsTree::copy ( )
protectedslot

Slot for context menu item to copy selection to clipboard.

Definition at line 895 of file resultstree.cpp.

References ERRORID, FILENAME, INCONCLUSIVE, inconclusive, LINE, MESSAGE, mModel, mSelectionModel, SEVERITY, severityToString(), and ShowTypes::ShowTypeToSeverity().

◆ createCheckboxItem()

QStandardItem * ResultsTree::createCheckboxItem ( bool  checked)
staticprotected

Create new normal item.

Normal item has left alignment and text set also as tooltip.

Parameters
checkedchecked
Returns
new QStandardItem

Definition at line 122 of file resultstree.cpp.

Referenced by addBacktraceFiles().

◆ createLineNumberItem()

QStandardItem * ResultsTree::createLineNumberItem ( const QString &  linenumber)
staticprotected

Create new line number item.

Line number item has right align and text set as tooltip.

Parameters
linenumbername for the item
Returns
new QStandardItem

Definition at line 131 of file resultstree.cpp.

Referenced by addBacktraceFiles().

◆ createNormalItem()

QStandardItem * ResultsTree::createNormalItem ( const QString &  name)
staticprotected

Create new normal item.

Normal item has left alignment and text set also as tooltip.

Parameters
namename for the item
Returns
new QStandardItem

Definition at line 114 of file resultstree.cpp.

Referenced by addBacktraceFiles(), and ensureFileItem().

◆ currentChanged

void ResultsTree::currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
overrideprotectedslot

Slot for selection change in the results tree.

Parameters
currentModel index to specify new selected item.
previousModel index to specify previous selected item.

Definition at line 1459 of file resultstree.cpp.

References treeSelectionChanged().

◆ ensureFileItem()

QStandardItem * ResultsTree::ensureFileItem ( const QString &  fullpath,
const QString &  file0,
bool  hide 
)
protected

Ensures there's a item in the model for the specified file.

Parameters
fullpathFull path to the file item.
file0Source file
hideis the error (we want this file item for) hidden?
Returns
QStandardItem to be used as a parent for all errors for specified file

Definition at line 569 of file resultstree.cpp.

References createNormalItem(), FILE0, FILENAME, findFileItem(), mModel, and stripPath().

Referenced by addErrorItem().

◆ filterResults()

void ResultsTree::filterResults ( const QString &  filter)

Function to filter the displayed list of errors.

Refreshes the tree.

Parameters
filterString that must be found in the summary, description, file or id

Definition at line 459 of file resultstree.cpp.

References mFilter, and refreshTree().

◆ findFileItem()

QStandardItem * ResultsTree::findFileItem ( const QString &  name) const
protected

Finds a file item.

Parameters
namename of the file item to find
Returns
pointer to file item or null if none found

Definition at line 358 of file resultstree.cpp.

References mModel.

Referenced by ensureFileItem().

◆ getCheckDirectory()

const QString & ResultsTree::getCheckDirectory ( )

Get the directory we are checking.

Returns
Directory containing source files

Definition at line 1340 of file resultstree.cpp.

References mCheckPath.

◆ getFilePath()

QString ResultsTree::getFilePath ( const QStandardItem *  target,
bool  fullPath 
)
staticprotected

Helper function returning the filename/full path of the error tree item target.

Parameters
targetThe error tree item containing the filename/full path
fullPathWhether or not to retrieve the full path or only the filename.

Definition at line 1145 of file resultstree.cpp.

References FILENAME.

Referenced by openContainingFolder().

◆ hasResults()

bool ResultsTree::hasResults ( ) const

Do we have results from check?

Returns
true if there is at least one warning/error, hidden or visible.

Definition at line 1429 of file resultstree.cpp.

References mModel.

◆ hasVisibleResults()

bool ResultsTree::hasVisibleResults ( ) const

Check if there are any visible results in view.

Returns
true if there is at least one visible warning/error.

Definition at line 1424 of file resultstree.cpp.

References mVisibleErrors.

◆ hideAllIdResult

void ResultsTree::hideAllIdResult ( )
protectedslot

Slot for context menu item to hide all messages with the current message Id.

Definition at line 981 of file resultstree.cpp.

References ERRORID, HIDE, mContextItem, mHiddenMessageId, mModel, refreshTree(), resultsHidden(), and toString().

Referenced by contextMenuEvent().

◆ hideResult

void ResultsTree::hideResult ( )
protectedslot

Slot for context menu item to hide the current error message.

Definition at line 927 of file resultstree.cpp.

References HIDE, mModel, mSelectionModel, refreshTree(), and resultsHidden().

Referenced by contextMenuEvent().

◆ initialize()

void ResultsTree::initialize ( QSettings *  settings,
ApplicationList list,
ThreadHandler checkThreadHandler 
)

Definition at line 105 of file resultstree.cpp.

References loadSettings(), mApplications, mSettings, and mThread.

◆ keyPressEvent()

void ResultsTree::keyPressEvent ( QKeyEvent *  event)
override

Definition at line 97 of file resultstree.cpp.

References quickStartApplication().

◆ loadSettings()

void ResultsTree::loadSettings ( )
protected

◆ openContainingFolder

void ResultsTree::openContainingFolder ( )
protectedslot

Slot for context menu item to open the folder containing the current file.

Definition at line 1103 of file resultstree.cpp.

References getFilePath(), and mContextItem.

Referenced by contextMenuEvent().

◆ quickStartApplication

void ResultsTree::quickStartApplication ( const QModelIndex &  index)
protectedslot

Slot to quickstart an error with default application.

Parameters
indexModel index to specify which error item to open

Definition at line 1140 of file resultstree.cpp.

References mModel, and startApplication().

Referenced by keyPressEvent(), and ResultsTree().

◆ readErrorItem()

void ResultsTree::readErrorItem ( const QStandardItem *  error,
ErrorItem item 
) const
private

◆ recheckSelectedFiles

void ResultsTree::recheckSelectedFiles ( )
protectedslot

Slot for rechecking selected files.

Definition at line 944 of file resultstree.cpp.

References askFileDir(), checkSelected(), FILE0, FILENAME, Path::isHeader2(), mCheckPath, mModel, mSelectionModel, and toString().

◆ refreshFilePaths() [1/2]

void ResultsTree::refreshFilePaths ( )
protected

Hides/shows full file path on all error file items according to mShowFullPath.

Definition at line 1414 of file resultstree.cpp.

References mModel.

Referenced by updateSettings().

◆ refreshFilePaths() [2/2]

void ResultsTree::refreshFilePaths ( QStandardItem *  item)
protected

Hides/shows full file path on all error file items according to mShowFullPath.

Parameters
itemParent item whose children's paths to change

Definition at line 1355 of file resultstree.cpp.

References error, FILENAME, and stripPath().

◆ refreshTree()

void ResultsTree::refreshTree ( )

◆ resultsHidden

void ResultsTree::resultsHidden ( bool  hidden)
signal

Signal that results have been hidden or shown.

Parameters
hiddentrue if there are some hidden results, or false if there are not

Referenced by hideAllIdResult(), hideResult(), ResultsView::ResultsView(), and showHiddenResults().

◆ saveErrors()

void ResultsTree::saveErrors ( Report report,
const QStandardItem *  fileItem 
) const
protected

Save all errors under specified item.

Parameters
reportReport that errors are saved to
fileItemItem whose errors to save

Definition at line 1200 of file resultstree.cpp.

References error, mSaveAllErrors, readErrorItem(), and Report::writeError().

Referenced by saveResults().

◆ saveResults()

void ResultsTree::saveResults ( Report report) const

Save results to a text stream.

Definition at line 1188 of file resultstree.cpp.

References mModel, mSaveAllErrors, saveErrors(), Report::writeFooter(), and Report::writeHeader().

◆ saveSettings()

void ResultsTree::saveSettings ( ) const

Save all settings Column widths.

Definition at line 431 of file resultstree.cpp.

References mModel, mSettings, and SETTINGS_RESULT_COLUMN_WIDTH.

◆ setCheckDirectory()

void ResultsTree::setCheckDirectory ( const QString &  dir)

Set the directory we are checking.

This is used to split error file path to relative if necessary

Parameters
dirDirectory we are checking

Definition at line 1334 of file resultstree.cpp.

References mCheckPath.

◆ severityToIcon()

QString ResultsTree::severityToIcon ( Severity  severity)
staticprotected

Convert a severity string to a icon filename.

Parameters
severitySeverity

Definition at line 1168 of file resultstree.cpp.

References error, information, performance, portability, style, and warning.

Referenced by addErrorItem().

◆ severityToTranslatedString()

QString ResultsTree::severityToTranslatedString ( Severity  severity)
staticprotected

Convert Severity to translated string for GUI.

Parameters
severitySeverity to convert
Returns
Severity as translated string

Definition at line 325 of file resultstree.cpp.

References debug, error, information, internal, none, performance, portability, style, and warning.

Referenced by addBacktraceFiles().

◆ showClangResults

void ResultsTree::showClangResults ( bool  show)
slot

Show/hide clang-tidy/clang-analyzer errors.

Refreshes the tree.

Parameters
showShould specified errors be shown (true) or hidden (false)

Definition at line 453 of file resultstree.cpp.

References mShowClang, and refreshTree().

Referenced by ResultsView::ResultsView().

◆ showCppcheckResults

void ResultsTree::showCppcheckResults ( bool  show)
slot

Show/hide cppcheck errors.

Refreshes the tree.

Parameters
showShould specified errors be shown (true) or hidden (false)

Definition at line 447 of file resultstree.cpp.

References mShowCppcheck, and refreshTree().

Referenced by ResultsView::ResultsView().

◆ showHiddenResults()

void ResultsTree::showHiddenResults ( )

Function to show results that were previous hidden with HideResult()

Definition at line 465 of file resultstree.cpp.

References HIDE, mHiddenMessageId, mModel, refreshTree(), and resultsHidden().

Referenced by ResultsView::ResultsView().

◆ showIdColumn() [1/2]

bool ResultsTree::showIdColumn ( ) const
inline

Returns true if column "Id" is shown.

Definition at line 176 of file resultstree.h.

References mShowErrorId.

Referenced by loadSettings(), and updateSettings().

◆ showIdColumn() [2/2]

void ResultsTree::showIdColumn ( bool  show)

Show optional column "Id".

Definition at line 1442 of file resultstree.cpp.

References mShowErrorId.

◆ showInconclusiveColumn()

void ResultsTree::showInconclusiveColumn ( bool  show)

Show optional column "Inconclusve".

Definition at line 1451 of file resultstree.cpp.

Referenced by loadSettings(), and updateSettings().

◆ showResults

void ResultsTree::showResults ( ShowTypes::ShowType  type,
bool  show 
)
slot

Function to show/hide certain type of errors Refreshes the tree.

Parameters
typeType of error to show/hide
showShould specified errors be shown (true) or hidden (false)

Definition at line 439 of file resultstree.cpp.

References ShowTypes::isShown(), mShowSeverities, refreshTree(), ShowTypes::show(), and ShowTypes::ShowNone.

Referenced by ResultsView::ResultsView().

◆ startApplication()

void ResultsTree::startApplication ( const QStandardItem *  target,
int  application = -1 
)
protected

Helper function to open an error within target with application*.

Parameters
targetError tree item to open
applicationIndex of the application to open with. Giving -1 (default value) will open the default application.

Definition at line 734 of file resultstree.cpp.

References askFileDir(), FILENAME, ApplicationList::getApplication(), ApplicationList::getApplicationCount(), ApplicationList::getDefaultApplication(), Application::getParameters(), Application::getPath(), LINE, mApplications, mCheckPath, MESSAGE, SEVERITY, SUPPRESS_WARNING_CLANG_POP, SUPPRESS_WARNING_CLANG_PUSH, SUPPRESS_WARNING_GCC_POP, SUPPRESS_WARNING_GCC_PUSH, and toString().

Referenced by context(), and quickStartApplication().

◆ stripPath()

QString ResultsTree::stripPath ( const QString &  path,
bool  saving 
) const
protected

Removes checking directory from given path if mShowFullPath is false.

Parameters
pathPath to remove checking directory
savingare we saving? Check mSaveFullPath instead
Returns
Path that has checking directory removed

Definition at line 1345 of file resultstree.cpp.

References mCheckPath, mSaveFullPath, and mShowFullPath.

Referenced by addErrorItem(), clear(), ensureFileItem(), readErrorItem(), and refreshFilePaths().

◆ suppressHash

void ResultsTree::suppressHash ( )
protectedslot

◆ suppressIds

void ResultsTree::suppressIds ( QStringList  ids)
signal

Suppress Ids.

Referenced by ResultsView::ResultsView(), and suppressSelectedIds().

◆ suppressSelectedIds

void ResultsTree::suppressSelectedIds ( )
protectedslot

Slot for context menu item to suppress all messages with the current message id.

Definition at line 1026 of file resultstree.cpp.

References ERRORID, mModel, mSelectionModel, and suppressIds().

Referenced by contextMenuEvent().

◆ tagSelectedItems()

void ResultsTree::tagSelectedItems ( const QString &  tag)
private

◆ translate()

void ResultsTree::translate ( )

Change all visible texts language.

Definition at line 1434 of file resultstree.cpp.

References mModel.

Referenced by ResultsTree().

◆ treeSelectionChanged

void ResultsTree::treeSelectionChanged ( const QModelIndex &  current)
signal

Signal for selection change in result tree.

Parameters
currentModel index to specify new selected item.

Referenced by currentChanged(), and ResultsView::ResultsView().

◆ updateFromOldReport()

void ResultsTree::updateFromOldReport ( const QString &  filename)

Update items from old report (tag, sinceDate)

Definition at line 1234 of file resultstree.cpp.

References Report::close(), COLUMN_SINCE_DATE, error, indexOf(), mModel, XmlReportV2::open(), XmlReportV2::read(), readErrorItem(), SINCEDATE, ErrorItem::tags, TAGS, and toString().

◆ updateSettings()

void ResultsTree::updateSettings ( bool  showFullPath,
bool  saveFullPath,
bool  saveAllErrors,
bool  showErrorId,
bool  showInconclusive 
)

Update tree settings.

Parameters
showFullPathShow full path of files in the tree
saveFullPathSave full path of files in reports
saveAllErrorsSave all visible errors
showErrorIdShow error id
showInconclusiveShow inconclusive column

Definition at line 1316 of file resultstree.cpp.

References mSaveAllErrors, mSaveFullPath, mShowFullPath, refreshFilePaths(), showIdColumn(), and showInconclusiveColumn().

Member Data Documentation

◆ mApplications

ApplicationList* ResultsTree::mApplications {}
protected

List of applications to open errors with.

Definition at line 468 of file resultstree.h.

Referenced by contextMenuEvent(), initialize(), and startApplication().

◆ mCheckPath

QString ResultsTree::mCheckPath
protected

◆ mContextItem

QStandardItem* ResultsTree::mContextItem {}
protected

Right clicked item (used by context menu slots)

Definition at line 474 of file resultstree.h.

Referenced by context(), contextMenuEvent(), hideAllIdResult(), and openContainingFolder().

◆ mFilter

QString ResultsTree::mFilter
protected

A string used to filter the results for display.

Definition at line 462 of file resultstree.h.

Referenced by addErrorItem(), filterResults(), and refreshTree().

◆ mHiddenMessageId

QStringList ResultsTree::mHiddenMessageId
private

Definition at line 519 of file resultstree.h.

Referenced by addErrorItem(), hideAllIdResult(), and showHiddenResults().

◆ mModel

QStandardItemModel ResultsTree::mModel
protected

◆ mSaveAllErrors

bool ResultsTree::mSaveAllErrors = true
protected

Save all errors (true) or only visible (false)

Definition at line 492 of file resultstree.h.

Referenced by loadSettings(), saveErrors(), saveResults(), and updateSettings().

◆ mSaveFullPath

bool ResultsTree::mSaveFullPath {}
protected

Should full path of files be saved.

Definition at line 486 of file resultstree.h.

Referenced by loadSettings(), stripPath(), and updateSettings().

◆ mSelectionModel

QItemSelectionModel* ResultsTree::mSelectionModel {}
private

◆ mSettings

QSettings* ResultsTree::mSettings {}
protected

Program settings.

Definition at line 456 of file resultstree.h.

Referenced by initialize(), loadSettings(), and saveSettings().

◆ mShowClang

bool ResultsTree::mShowClang = true
private

Definition at line 525 of file resultstree.h.

Referenced by refreshTree(), and showClangResults().

◆ mShowCppcheck

bool ResultsTree::mShowCppcheck = true
private

Definition at line 524 of file resultstree.h.

Referenced by refreshTree(), and showCppcheckResults().

◆ mShowErrorId

bool ResultsTree::mShowErrorId {}
protected

true if optional column "Id" is shown

Definition at line 498 of file resultstree.h.

Referenced by showIdColumn().

◆ mShowFullPath

bool ResultsTree::mShowFullPath {}
protected

Should full path of files be shown (true) or relative (false)

Definition at line 480 of file resultstree.h.

Referenced by loadSettings(), stripPath(), and updateSettings().

◆ mShowSeverities

ShowTypes ResultsTree::mShowSeverities

GUI severities.

Definition at line 183 of file resultstree.h.

Referenced by addErrorItem(), refreshTree(), and showResults().

◆ mThread

ThreadHandler* ResultsTree::mThread {}
private

Definition at line 522 of file resultstree.h.

Referenced by contextMenuEvent(), and initialize().

◆ mVisibleErrors

bool ResultsTree::mVisibleErrors {}
protected

Are there any visible errors.

Definition at line 510 of file resultstree.h.

Referenced by addErrorItem(), hasVisibleResults(), and refreshTree().


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