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

Method selectNextItem

plugins/grepview/grepoutputview.cpp:389–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387}
388
389void GrepOutputView::selectNextItem()
390{
391 if (!model()) {
392 return;
393 }
394
395 QModelIndex next_idx = model()->nextItemIndex(resultsTreeView->currentIndex());
396 if (next_idx.isValid()) {
397 resultsTreeView->setCurrentIndex(next_idx);
398 model()->activate(next_idx);
399 }
400}
401
402
403void GrepOutputView::collapseAllItems()

Callers

nothing calls this directly

Calls 6

modelFunction · 0.85
nextItemIndexMethod · 0.80
setCurrentIndexMethod · 0.80
currentIndexMethod · 0.45
isValidMethod · 0.45
activateMethod · 0.45

Tested by

no test coverage detected