| 115 | } |
| 116 | |
| 117 | void ClassTree::itemActivated(const QModelIndex& index) |
| 118 | { |
| 119 | DUChainReadLocker readLock(DUChain::lock()); |
| 120 | |
| 121 | DeclarationPointer decl = DeclarationPointer(dynamic_cast<Declaration*>(model()->duObjectForIndex(index))); |
| 122 | readLock.unlock(); |
| 123 | |
| 124 | // Delegate to plugin function |
| 125 | m_plugin->showDefinition(decl); |
| 126 | |
| 127 | if (isExpanded(index)) |
| 128 | collapse(index); |
| 129 | else |
| 130 | expand(index); |
| 131 | } |
| 132 | |
| 133 | void ClassTree::highlightIdentifier(const KDevelop::IndexedQualifiedIdentifier& a_id) |
| 134 | { |
nothing calls this directly
no test coverage detected