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

Method hideResult

gui/resultstree.cpp:906–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904}
905
906void ResultsTree::hideResult()
907{
908 if (!mSelectionModel)
909 return;
910 bool hide = false;
911 for (const QModelIndex& index : mSelectionModel->selectedRows()) {
912 auto *item = dynamic_cast<ResultItem*>(mModel->itemFromIndex(index));
913 if (item && item->getType() == ResultItem::Type::message)
914 hide = item->hidden = true;
915 }
916 if (hide) {
917 refreshTree();
918 emit resultsHidden(true);
919 }
920}
921
922void ResultsTree::recheckSelectedFiles()
923{

Callers

nothing calls this directly

Calls 1

getTypeMethod · 0.45

Tested by

no test coverage detected