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

Method highlightIdentifier

plugins/classbrowser/classtree.cpp:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void ClassTree::highlightIdentifier(const KDevelop::IndexedQualifiedIdentifier& a_id)
134{
135 QModelIndex index = model()->indexForIdentifier(a_id);
136 if (!index.isValid())
137 return;
138
139 // expand and select the item.
140 selectionModel()->select(index, QItemSelectionModel::ClearAndSelect);
141 scrollTo(index, PositionAtCenter);
142 horizontalScrollBar()->setValue(horizontalScrollBar()->minimum());
143 expand(index);
144}
145
146#include "moc_classtree.cpp"

Callers 1

findInClassBrowserMethod · 0.80

Calls 6

modelFunction · 0.85
expandFunction · 0.85
indexForIdentifierMethod · 0.80
selectMethod · 0.80
isValidMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected