| 116 | |
| 117 | |
| 118 | void 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 | |
| 129 | QModelIndex CMakeCommandsContents::parent(const QModelIndex& child) const |
| 130 | { |
nothing calls this directly
no test coverage detected