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

Method showDocumentation

kdevplatform/shell/documentationcontroller.cpp:227–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void KDevelop::DocumentationController::showDocumentation(const IDocumentation::Ptr& doc)
228{
229 Q_ASSERT_X(doc, Q_FUNC_INFO, "Null documentation pointer is unsupported.");
230 QWidget* w = ICore::self()->uiController()->findToolView(i18nc("@title:window", "Documentation"), m_factory, KDevelop::IUiController::CreateAndRaise);
231 if(!w) {
232 qCWarning(SHELL) << "Could not add documentation tool view";
233 return;
234 }
235
236 auto* view = dynamic_cast<DocumentationView*>(w);
237 if( !view ) {
238 qCWarning(SHELL) << "Could not cast tool view" << w << "to DocumentationView class!";
239 return;
240 }
241 view->showDocumentation(doc);
242}
243
244void DocumentationController::changedDocumentationProviders()
245{

Callers 7

executeMethod · 0.45
showUrlMethod · 0.45
clickedMethod · 0.45
jumpedToMethod · 0.45
showItemMethod · 0.45
showItemFromUrlMethod · 0.45
showItemAtMethod · 0.45

Calls 2

findToolViewMethod · 0.80
uiControllerMethod · 0.80

Tested by

no test coverage detected