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

Method showItemAt

plugins/cmake/cmakecommandscontents.cpp:118–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117
118void CMakeCommandsContents::showItemAt(const QModelIndex& idx) const
119{
120 if(idx.isValid() && int(idx.internalId())>=0) {
121 QString desc=CMakeDoc::s_provider->descriptionForIdentifier(idx.data().toString(),
122 (ICMakeDocumentation::Type) idx.parent().row());
123 CMakeDoc::Ptr doc(new CMakeDoc(idx.data().toString(), desc));
124
125 KDevelop::ICore::self()->documentationController()->showDocumentation(doc);
126 }
127}
128
129QModelIndex CMakeCommandsContents::parent(const QModelIndex& child) const
130{

Callers

nothing calls this directly

Calls 8

isValidMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45
rowMethod · 0.45
parentMethod · 0.45
showDocumentationMethod · 0.45

Tested by

no test coverage detected