MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / clear

Method clear

gui/resultstree.cpp:401–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401void ResultsTree::clear()
402{
403 mErrorList.clear();
404
405 mModel->removeRows(0, mModel->rowCount());
406
407 if (const ProjectFile *activeProject = ProjectFile::getActiveProject()) {
408 hideColumn(COLUMN_SINCE_DATE);
409 if (activeProject->getTags().isEmpty())
410 hideColumn(COLUMN_TAGS);
411 else
412 showColumn(COLUMN_TAGS);
413 } else {
414 hideColumn(COLUMN_SINCE_DATE);
415 hideColumn(COLUMN_TAGS);
416 }
417}
418
419void ResultsTree::clear(const QString &filename)
420{

Callers 15

man_searchFunction · 0.45
loadMethod · 0.45
filterMethod · 0.45
findInFilesClickedMethod · 0.45
fillSettingsFromArgsMethod · 0.45
parseFromArgsMethod · 0.45
executeCommandMethod · 0.45
checkMethod · 0.45
_checkSuppressionMethod · 0.45
inlinesuppressMethod · 0.45

Calls 3

rowCountMethod · 0.80
isEmptyMethod · 0.80
toStringMethod · 0.45

Tested by 15

checkMethod · 0.36
_checkSuppressionMethod · 0.36
inlinesuppressMethod · 0.36
simpleEnableGroupMethod · 0.36
checkMethod · 0.36
checkMethod · 0.36
test_BOOST_FOREACH_4Function · 0.36
initMethod · 0.36
podtypeValidMethod · 0.36
typechecksValidMethod · 0.36