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

Method closeOtherViews

plugins/standardoutputview/outputwidget.cpp:379–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379void 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
400QWidget* OutputWidget::currentWidget() const
401{

Callers

nothing calls this directly

Calls 4

currentWidgetMethod · 0.45
keysMethod · 0.45
valueMethod · 0.45
removeOutputMethod · 0.45

Tested by

no test coverage detected