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

Method itemActivated

plugins/classbrowser/classtree.cpp:117–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void 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
133void ClassTree::highlightIdentifier(const KDevelop::IndexedQualifiedIdentifier& a_id)
134{

Callers

nothing calls this directly

Calls 6

modelFunction · 0.85
isExpandedFunction · 0.85
expandFunction · 0.85
duObjectForIndexMethod · 0.80
showDefinitionMethod · 0.80
unlockMethod · 0.45

Tested by

no test coverage detected