MCPcopy Create free account
hub / github.com/MITK/MITK / RemoveRenderWindowWidget

Method RemoveRenderWindowWidget

Modules/QtWidgets/src/QmitkAbstractMultiWidget.cpp:437–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437void QmitkAbstractMultiWidget::RemoveRenderWindowWidget()
438{
439 // Walk the map in reverse and remove the lexicographically last entry.
440 // Using the map directly (rather than 'GetNameFromIndex(count-1)') keeps
441 // this safe for layouts whose cell names are not the legacy positional
442 // 'widget<i>' form, e.g. v2 layouts with custom names.
443 if (m_Impl->m_RenderWindowWidgets.empty())
444 {
445 return;
446 }
447
448 auto last = std::prev(m_Impl->m_RenderWindowWidgets.end());
449 RenderWindowWidgetPointer renderWindowWidgetToRemove = last->second;
450 disconnect(renderWindowWidgetToRemove.get(), 0, 0, 0);
451 m_Impl->m_RenderWindowWidgets.erase(last);
452}
453
454void QmitkAbstractMultiWidget::RemoveRenderWindowWidget(const QString& widgetName)
455{

Callers 3

SetLayoutImplMethod · 0.80
TearDownAllCellsMethod · 0.80

Calls 4

emptyMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected