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

Method SetOneBigLayout

Modules/QtWidgets/src/QmitkMultiWidgetLayoutManager.cpp:261–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void QmitkMultiWidgetLayoutManager::SetOneBigLayout()
262{
263 MITK_DEBUG << "Set single 2D layout";
264
265 m_MultiWidget->ActivateMenuWidget(false);
266
267 delete m_MultiWidget->layout();
268
269 auto hBoxLayout = new QHBoxLayout(m_MultiWidget);
270 hBoxLayout->setContentsMargins(0, 0, 0, 0);
271 m_MultiWidget->setLayout(hBoxLayout);
272 hBoxLayout->setContentsMargins({});
273
274 auto mainSplit = new QSplitter(m_MultiWidget);
275 hBoxLayout->addWidget(mainSplit);
276 mainSplit->addWidget(m_CurrentRenderWindowWidget);
277 m_CurrentRenderWindowWidget->show();
278
279 m_MultiWidget->ActivateMenuWidget(true);
280
281 auto allRenderWindows = m_MultiWidget->GetRenderWindows();
282 for (auto& renderWindow : allRenderWindows)
283 {
284 renderWindow->UpdateLayoutDesignList(LayoutDesign::ONE_BIG);
285 }
286}
287
288void QmitkMultiWidgetLayoutManager::SetOnly2DHorizontalLayout()
289{

Callers

nothing calls this directly

Calls 4

showMethod · 0.80
ActivateMenuWidgetMethod · 0.45
GetRenderWindowsMethod · 0.45

Tested by

no test coverage detected