| 259 | } |
| 260 | |
| 261 | void 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 | |
| 288 | void QmitkMultiWidgetLayoutManager::SetOnly2DHorizontalLayout() |
| 289 | { |
nothing calls this directly
no test coverage detected