| 377 | } |
| 378 | |
| 379 | void OutputWidget::closeOtherViews() |
| 380 | { |
| 381 | Q_ASSERT(m_tabwidget); |
| 382 | QWidget* widget = m_tabwidget->currentWidget(); |
| 383 | if (!widget) |
| 384 | return; |
| 385 | |
| 386 | const auto ids = m_views.keys(); |
| 387 | for (int id : ids) { |
| 388 | if (m_views.value(id).view == widget) { |
| 389 | continue; // leave the active view open |
| 390 | } |
| 391 | |
| 392 | OutputData* od = data->outputdata.value(id); |
| 393 | if (od->behaviour & KDevelop::IOutputView::AllowUserClose) { |
| 394 | data->plugin->removeOutput( id ); |
| 395 | } |
| 396 | } |
| 397 | enableActions(); |
| 398 | } |
| 399 | |
| 400 | QWidget* OutputWidget::currentWidget() const |
| 401 | { |
nothing calls this directly
no test coverage detected