Cppcheck
|
Cppcheck's results are shown in this tree. More...
#include <resultstree.h>
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 ¤t) |
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 ¤t, 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... | |
ApplicationList * | mApplications {} |
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 {} |
ThreadHandler * | mThread {} |
bool | mShowCppcheck = true |
bool | mShowClang = true |
Cppcheck's results are shown in this tree.
Definition at line 52 of file resultstree.h.
|
explicit |
Definition at line 86 of file resultstree.cpp.
References mModel, quickStartApplication(), and translate().
|
protected |
Add a new error item beneath a file or a backtrace item beneath an error.
parent | Parent for the item. Either a file item or an error item |
item | Error line data |
hide | Should this be hidden (true) or shown (false) |
icon | Should a default backtrace item icon be added |
childOfMessage | Is this a child element of a message? |
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().
bool ResultsTree::addErrorItem | ( | const ErrorItem & | item | ) |
Add a new item to the tree.
item | Error item data |
Definition at line 141 of file resultstree.cpp.
References addBacktraceFiles(), QErrorPathItem::column, COLUMN, ErrorItem::cwe, ErrorLine::cwe, CWE, ensureFileItem(), ErrorItem::errorId, ErrorLine::errorId, ERRORID, ErrorItem::errorPath, QErrorPathItem::file, ErrorLine::file, ErrorItem::file0, FILE0, FILENAME, ProjectFile::getActiveProject(), ErrorItem::hash, ErrorLine::hash, HASH, HIDE, ErrorItem::inconclusive, ErrorLine::inconclusive, INCONCLUSIVE, QErrorPathItem::info, ShowTypes::isShown(), QErrorPathItem::line, ErrorLine::line, LINE, ErrorItem::message, ErrorLine::message, MESSAGE, mFilter, mHiddenMessageId, mShowSeverities, mVisibleErrors, ErrorItem::severity, ErrorLine::severity, SEVERITY, severityToIcon(), ShowTypes::SeverityToShowType(), ErrorItem::sinceDate, ErrorLine::sinceDate, SINCEDATE, stripPath(), ErrorItem::summary, ErrorLine::summary, SUMMARY, ErrorItem::symbolNames, SYMBOLNAMES, ErrorLine::tags, and TAGS.
|
protected |
Ask directory where file is located.
file | File name. |
Definition at line 847 of file resultstree.cpp.
References getPath(), mCheckPath, setPath(), and SETTINGS_LAST_SOURCE_PATH.
Referenced by recheckSelectedFiles(), and startApplication().
|
signal |
Signal to perform selected files recheck.
selectedItems | list of selected files |
Referenced by recheckSelectedFiles(), and ResultsView::ResultsView().
void ResultsTree::clear | ( | ) |
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().
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.
|
protectedslot |
Slot for context menu item to open an error with specified application.
application | Index of the application to open the error |
Definition at line 1135 of file resultstree.cpp.
References mContextItem, and startApplication().
Referenced by contextMenuEvent().
|
overrideprotected |
Context menu event (user right clicked on the tree)
e | Event |
Definition at line 597 of file resultstree.cpp.
References context(), ERRORID, ProjectFile::getActiveProject(), ApplicationList::getApplication(), ApplicationList::getApplicationCount(), ApplicationList::getDefaultApplication(), Application::getName(), ProjectFile::getTags(), hideAllIdResult(), hideResult(), ThreadHandler::isChecking(), ErrorLogger::isCriticalErrorId(), mApplications, mContextItem, mModel, mSelectionModel, mThread, openContainingFolder(), suppressSelectedIds(), and tagSelectedItems().
|
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().
|
staticprotected |
Create new normal item.
Normal item has left alignment and text set also as tooltip.
checked | checked |
Definition at line 122 of file resultstree.cpp.
Referenced by addBacktraceFiles().
|
staticprotected |
Create new line number item.
Line number item has right align and text set as tooltip.
linenumber | name for the item |
Definition at line 131 of file resultstree.cpp.
Referenced by addBacktraceFiles().
|
staticprotected |
Create new normal item.
Normal item has left alignment and text set also as tooltip.
name | name for the item |
Definition at line 114 of file resultstree.cpp.
Referenced by addBacktraceFiles(), and ensureFileItem().
|
overrideprotectedslot |
Slot for selection change in the results tree.
current | Model index to specify new selected item. |
previous | Model index to specify previous selected item. |
Definition at line 1459 of file resultstree.cpp.
References treeSelectionChanged().
|
protected |
Ensures there's a item in the model for the specified file.
fullpath | Full path to the file item. |
file0 | Source file |
hide | is the error (we want this file item for) hidden? |
Definition at line 569 of file resultstree.cpp.
References createNormalItem(), FILE0, FILENAME, findFileItem(), mModel, and stripPath().
Referenced by addErrorItem().
void ResultsTree::filterResults | ( | const QString & | filter | ) |
Function to filter the displayed list of errors.
Refreshes the tree.
filter | String that must be found in the summary, description, file or id |
Definition at line 459 of file resultstree.cpp.
References mFilter, and refreshTree().
|
protected |
Finds a file item.
name | name of the file item to find |
Definition at line 358 of file resultstree.cpp.
References mModel.
Referenced by ensureFileItem().
const QString & ResultsTree::getCheckDirectory | ( | ) |
Get the directory we are checking.
Definition at line 1340 of file resultstree.cpp.
References mCheckPath.
|
staticprotected |
Helper function returning the filename/full path of the error tree item target.
target | The error tree item containing the filename/full path |
fullPath | Whether or not to retrieve the full path or only the filename. |
Definition at line 1145 of file resultstree.cpp.
References FILENAME.
Referenced by openContainingFolder().
bool ResultsTree::hasResults | ( | ) | const |
Do we have results from check?
Definition at line 1429 of file resultstree.cpp.
References mModel.
bool ResultsTree::hasVisibleResults | ( | ) | const |
Check if there are any visible results in view.
Definition at line 1424 of file resultstree.cpp.
References mVisibleErrors.
|
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().
|
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().
void ResultsTree::initialize | ( | QSettings * | settings, |
ApplicationList * | list, | ||
ThreadHandler * | checkThreadHandler | ||
) |
Definition at line 105 of file resultstree.cpp.
References loadSettings(), mApplications, mSettings, and mThread.
|
override |
Definition at line 97 of file resultstree.cpp.
References quickStartApplication().
|
protected |
Load all settings Column widths.
Definition at line 416 of file resultstree.cpp.
References mModel, mSaveAllErrors, mSaveFullPath, mSettings, mShowFullPath, SETTINGS_INCONCLUSIVE_ERRORS, SETTINGS_RESULT_COLUMN_WIDTH, SETTINGS_SAVE_ALL_ERRORS, SETTINGS_SAVE_FULL_PATH, SETTINGS_SHOW_ERROR_ID, SETTINGS_SHOW_FULL_PATH, showIdColumn(), and showInconclusiveColumn().
Referenced by initialize().
|
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().
|
protectedslot |
Slot to quickstart an error with default application.
index | Model 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().
|
private |
Convert GUI error item into data error item.
Definition at line 1277 of file resultstree.cpp.
References ErrorItem::cwe, CWE, error, ErrorItem::errorId, ERRORID, ErrorItem::errorPath, QErrorPathItem::file, ErrorItem::file0, FILE0, FILENAME, ErrorItem::hash, HASH, ErrorItem::inconclusive, INCONCLUSIVE, QErrorPathItem::info, QErrorPathItem::line, LINE, ErrorItem::message, MESSAGE, ErrorItem::severity, SEVERITY, ShowTypes::ShowTypeToSeverity(), ErrorItem::sinceDate, SINCEDATE, stripPath(), ErrorItem::summary, SUMMARY, ErrorItem::tags, TAGS, toString(), and ShowTypes::VariantToShowType().
Referenced by saveErrors(), and updateFromOldReport().
|
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().
|
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().
|
protected |
Hides/shows full file path on all error file items according to mShowFullPath.
item | Parent item whose children's paths to change |
Definition at line 1355 of file resultstree.cpp.
References error, FILENAME, and stripPath().
void ResultsTree::refreshTree | ( | ) |
Refresh tree by checking which of the items should be shown and which should be hidden.
Definition at line 494 of file resultstree.cpp.
References ERRORID, FILENAME, HIDE, ShowTypes::isShown(), MESSAGE, mFilter, mModel, mShowClang, mShowCppcheck, mShowSeverities, mVisibleErrors, SEVERITY, SUMMARY, toString(), and ShowTypes::VariantToShowType().
Referenced by filterResults(), hideAllIdResult(), hideResult(), showClangResults(), showCppcheckResults(), showHiddenResults(), and showResults().
|
signal |
Signal that results have been hidden or shown.
hidden | true if there are some hidden results, or false if there are not |
Referenced by hideAllIdResult(), hideResult(), ResultsView::ResultsView(), and showHiddenResults().
|
protected |
Save all errors under specified item.
report | Report that errors are saved to |
fileItem | Item whose errors to save |
Definition at line 1200 of file resultstree.cpp.
References error, mSaveAllErrors, readErrorItem(), and Report::writeError().
Referenced by 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().
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.
void ResultsTree::setCheckDirectory | ( | const QString & | dir | ) |
Set the directory we are checking.
This is used to split error file path to relative if necessary
dir | Directory we are checking |
Definition at line 1334 of file resultstree.cpp.
References mCheckPath.
|
staticprotected |
Convert a severity string to a icon filename.
severity | Severity |
Definition at line 1168 of file resultstree.cpp.
References error, information, performance, portability, style, and warning.
Referenced by addErrorItem().
|
staticprotected |
Convert Severity to translated string for GUI.
severity | Severity to convert |
Definition at line 325 of file resultstree.cpp.
References debug, error, information, internal, none, performance, portability, style, and warning.
Referenced by addBacktraceFiles().
|
slot |
Show/hide clang-tidy/clang-analyzer errors.
Refreshes the tree.
show | Should specified errors be shown (true) or hidden (false) |
Definition at line 453 of file resultstree.cpp.
References mShowClang, and refreshTree().
Referenced by ResultsView::ResultsView().
|
slot |
Show/hide cppcheck errors.
Refreshes the tree.
show | Should specified errors be shown (true) or hidden (false) |
Definition at line 447 of file resultstree.cpp.
References mShowCppcheck, and refreshTree().
Referenced by ResultsView::ResultsView().
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().
|
inline |
Returns true if column "Id" is shown.
Definition at line 176 of file resultstree.h.
References mShowErrorId.
Referenced by loadSettings(), and updateSettings().
void ResultsTree::showIdColumn | ( | bool | show | ) |
Show optional column "Id".
Definition at line 1442 of file resultstree.cpp.
References mShowErrorId.
void ResultsTree::showInconclusiveColumn | ( | bool | show | ) |
Show optional column "Inconclusve".
Definition at line 1451 of file resultstree.cpp.
Referenced by loadSettings(), and updateSettings().
|
slot |
Function to show/hide certain type of errors Refreshes the tree.
type | Type of error to show/hide |
show | Should 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().
|
protected |
Helper function to open an error within target with application*.
target | Error tree item to open |
application | Index 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().
|
protected |
Removes checking directory from given path if mShowFullPath is false.
Definition at line 1345 of file resultstree.cpp.
References mCheckPath, mSaveFullPath, and mShowFullPath.
Referenced by addErrorItem(), clear(), ensureFileItem(), readErrorItem(), and refreshFilePaths().
|
protectedslot |
Slot for context menu item to suppress message with hash.
Definition at line 1064 of file resultstree.cpp.
References ProjectFile::addSuppression(), ERRORID, SuppressionList::Suppression::errorId, FILENAME, SuppressionList::Suppression::fileName, ProjectFile::getActiveProject(), HASH, SuppressionList::Suppression::hash, LINE, SuppressionList::Suppression::lineNumber, mModel, mSelectionModel, and ProjectFile::write().
|
signal |
Suppress Ids.
Referenced by ResultsView::ResultsView(), and 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().
|
private |
tag selected items
Definition at line 1112 of file resultstree.cpp.
References COLUMN_TAGS, ProjectFile::getActiveProject(), HASH, mModel, mSelectionModel, ProjectFile::setWarningTags(), TAGS, and ProjectFile::write().
Referenced by contextMenuEvent().
void ResultsTree::translate | ( | ) |
Change all visible texts language.
Definition at line 1434 of file resultstree.cpp.
References mModel.
Referenced by ResultsTree().
|
signal |
Signal for selection change in result tree.
current | Model index to specify new selected item. |
Referenced by currentChanged(), and ResultsView::ResultsView().
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().
void ResultsTree::updateSettings | ( | bool | showFullPath, |
bool | saveFullPath, | ||
bool | saveAllErrors, | ||
bool | showErrorId, | ||
bool | showInconclusive | ||
) |
Update tree settings.
showFullPath | Show full path of files in the tree |
saveFullPath | Save full path of files in reports |
saveAllErrors | Save all visible errors |
showErrorId | Show error id |
showInconclusive | Show inconclusive column |
Definition at line 1316 of file resultstree.cpp.
References mSaveAllErrors, mSaveFullPath, mShowFullPath, refreshFilePaths(), showIdColumn(), and showInconclusiveColumn().
|
protected |
List of applications to open errors with.
Definition at line 468 of file resultstree.h.
Referenced by contextMenuEvent(), initialize(), and startApplication().
|
protected |
Path we are currently checking.
Definition at line 504 of file resultstree.h.
Referenced by askFileDir(), clearRecheckFile(), getCheckDirectory(), recheckSelectedFiles(), setCheckDirectory(), startApplication(), and stripPath().
|
protected |
Right clicked item (used by context menu slots)
Definition at line 474 of file resultstree.h.
Referenced by context(), contextMenuEvent(), hideAllIdResult(), and openContainingFolder().
|
protected |
A string used to filter the results for display.
Definition at line 462 of file resultstree.h.
Referenced by addErrorItem(), filterResults(), and refreshTree().
|
private |
Definition at line 519 of file resultstree.h.
Referenced by addErrorItem(), hideAllIdResult(), and showHiddenResults().
|
protected |
Item model for tree.
Definition at line 450 of file resultstree.h.
Referenced by clear(), clearRecheckFile(), contextMenuEvent(), copy(), ensureFileItem(), findFileItem(), hasResults(), hideAllIdResult(), hideResult(), loadSettings(), quickStartApplication(), recheckSelectedFiles(), refreshFilePaths(), refreshTree(), ResultsTree(), saveResults(), saveSettings(), showHiddenResults(), suppressHash(), suppressSelectedIds(), tagSelectedItems(), translate(), and updateFromOldReport().
|
protected |
Save all errors (true) or only visible (false)
Definition at line 492 of file resultstree.h.
Referenced by loadSettings(), saveErrors(), saveResults(), and updateSettings().
|
protected |
Should full path of files be saved.
Definition at line 486 of file resultstree.h.
Referenced by loadSettings(), stripPath(), and updateSettings().
|
private |
Definition at line 521 of file resultstree.h.
Referenced by contextMenuEvent(), copy(), hideResult(), recheckSelectedFiles(), suppressHash(), suppressSelectedIds(), and tagSelectedItems().
|
protected |
Program settings.
Definition at line 456 of file resultstree.h.
Referenced by initialize(), loadSettings(), and saveSettings().
|
private |
Definition at line 525 of file resultstree.h.
Referenced by refreshTree(), and showClangResults().
|
private |
Definition at line 524 of file resultstree.h.
Referenced by refreshTree(), and showCppcheckResults().
|
protected |
true if optional column "Id" is shown
Definition at line 498 of file resultstree.h.
Referenced by showIdColumn().
|
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().
ShowTypes ResultsTree::mShowSeverities |
GUI severities.
Definition at line 183 of file resultstree.h.
Referenced by addErrorItem(), refreshTree(), and showResults().
|
private |
Definition at line 522 of file resultstree.h.
Referenced by contextMenuEvent(), and initialize().
|
protected |
Are there any visible errors.
Definition at line 510 of file resultstree.h.
Referenced by addErrorItem(), hasVisibleResults(), and refreshTree().