| 37 | KDevelop::IDocumentationProvider* CMakeDoc::provider() const { return s_provider; } |
| 38 | |
| 39 | CMakeDocumentation::CMakeDocumentation(QObject* parent, const KPluginMetaData& metaData, const QVariantList&) |
| 40 | : KDevelop::IPlugin(QStringLiteral("kdevcmakedocumentation"), parent, metaData) |
| 41 | , m_index(new CMakeCommandsContents(this)) |
| 42 | , m_flatIndex(new KDescendantsProxyModel(m_index)) |
| 43 | { |
| 44 | m_flatIndex->setSourceModel(m_index); |
| 45 | if (CMakeBuilderSettings::self()->cmakeExecutable().isEmpty()) { |
| 46 | setErrorDescription(i18n("Unable to find a CMake executable. Is one installed on the system?")); |
| 47 | return; |
| 48 | } |
| 49 | |
| 50 | CMakeDoc::s_provider=this; |
| 51 | } |
| 52 | |
| 53 | QVector<QString> CMakeDocumentation::names(CMakeDocumentation::Type t) const |
| 54 | { |
nothing calls this directly
no test coverage detected