| 131 | } |
| 132 | |
| 133 | void 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" |
no test coverage detected