Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/documentationcontroller.cpp
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Line(s) | 211 | { | |||
---|---|---|---|---|---|
217 | ret.append(doc); | 217 | ret.append(doc); | ||
218 | } | 218 | } | ||
219 | 219 | | |||
220 | return ret; | 220 | return ret; | ||
221 | } | 221 | } | ||
222 | 222 | | |||
223 | void KDevelop::DocumentationController::showDocumentation(const IDocumentation::Ptr& doc) | 223 | void KDevelop::DocumentationController::showDocumentation(const IDocumentation::Ptr& doc) | ||
224 | { | 224 | { | ||
225 | if (!doc->viewInExternalBrowser()) { | ||||
225 | QWidget* w = ICore::self()->uiController()->findToolView(i18n("Documentation"), m_factory, KDevelop::IUiController::CreateAndRaise); | 226 | QWidget* w = ICore::self()->uiController()->findToolView(i18n("Documentation"), m_factory, KDevelop::IUiController::CreateAndRaise); | ||
226 | if(!w) { | 227 | if(!w) { | ||
227 | qCWarning(SHELL) << "Could not add documentation toolview"; | 228 | qCWarning(SHELL) << "Could not add documentation toolview"; | ||
228 | return; | 229 | return; | ||
229 | } | 230 | } | ||
230 | 231 | | |||
231 | DocumentationView* view = dynamic_cast<DocumentationView*>(w); | 232 | DocumentationView* view = dynamic_cast<DocumentationView*>(w); | ||
232 | if( !view ) { | 233 | if( !view ) { | ||
233 | qCWarning(SHELL) << "Could not cast toolview" << w << "to DocumentationView class!"; | 234 | qCWarning(SHELL) << "Could not cast toolview" << w << "to DocumentationView class!"; | ||
234 | return; | 235 | return; | ||
235 | } | 236 | } | ||
236 | view->showDocumentation(doc); | 237 | view->showDocumentation(doc); | ||
237 | } | 238 | } | ||
239 | } | ||||
238 | 240 | | |||
239 | void DocumentationController::changedDocumentationProviders() | 241 | void DocumentationController::changedDocumentationProviders() | ||
240 | { | 242 | { | ||
241 | emit providersChanged(); | 243 | emit providersChanged(); | ||
242 | } | 244 | } | ||
243 | 245 | |