| 236 | } |
| 237 | |
| 238 | QWidget* ManPageDocumentation::documentationWidget(KDevelop::DocumentationFindWidget* findWidget, QWidget* parent ) |
| 239 | { |
| 240 | auto* view = new KDevelop::StandardDocumentationView(findWidget, parent); |
| 241 | view->initZoom(provider()->name()); |
| 242 | view->setDocumentation(IDocumentation::Ptr(this)); |
| 243 | view->setDelegateLinks(true); |
| 244 | QObject::connect(view, &KDevelop::StandardDocumentationView::linkClicked, ManPageDocumentation::s_provider->model(), &ManPageModel::showItemFromUrl); |
| 245 | return view; |
| 246 | } |
| 247 | |
| 248 | bool ManPageDocumentation::providesWidget() const |
| 249 | { |
nothing calls this directly
no test coverage detected