| 225 | } |
| 226 | |
| 227 | void 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 | |
| 244 | void DocumentationController::changedDocumentationProviders() |
| 245 | { |
no test coverage detected