MCPcopy Create free account
hub / github.com/KDE/kdevelop / collapseAllItems

Method collapseAllItems

plugins/grepview/grepoutputview.cpp:403–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401
402
403void GrepOutputView::collapseAllItems()
404{
405 // Collapse everything
406 resultsTreeView->collapseAll();
407
408 if (resultsTreeView->model()) {
409 // Now reopen the first children, which correspond to the files.
410 resultsTreeView->expand(resultsTreeView->model()->index(0, 0));
411 }
412}
413
414void GrepOutputView::expandAllItems()
415{

Callers

nothing calls this directly

Calls 3

expandMethod · 0.80
modelMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected