| 446 | } |
| 447 | |
| 448 | void QmitkMultiWidgetLayoutManager::SetAllHorizontalLayout() |
| 449 | { |
| 450 | MITK_DEBUG << "Set all horizontal layout"; |
| 451 | |
| 452 | m_MultiWidget->ActivateMenuWidget(false); |
| 453 | |
| 454 | delete m_MultiWidget->layout(); |
| 455 | |
| 456 | auto hBoxLayout = new QHBoxLayout(m_MultiWidget); |
| 457 | hBoxLayout->setContentsMargins(0, 0, 0, 0); |
| 458 | m_MultiWidget->setLayout(hBoxLayout); |
| 459 | hBoxLayout->setContentsMargins({}); |
| 460 | |
| 461 | auto mainSplit = new QSplitter(m_MultiWidget); |
| 462 | hBoxLayout->addWidget(mainSplit); |
| 463 | |
| 464 | QList<int> splitterSize; |
| 465 | auto allRenderWindowWidgets = m_MultiWidget->GetRenderWindowWidgets(); |
| 466 | for (const auto& renderWindowWidget : allRenderWindowWidgets) |
| 467 | { |
| 468 | if (nullptr != renderWindowWidget.second) |
| 469 | { |
| 470 | mainSplit->addWidget(renderWindowWidget.second.get()); |
| 471 | renderWindowWidget.second->show(); |
| 472 | splitterSize.push_back(1000); |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | // set size for main splitter |
| 477 | mainSplit->setSizes(splitterSize); |
| 478 | |
| 479 | m_MultiWidget->ActivateMenuWidget(true); |
| 480 | |
| 481 | auto allRenderWindows = m_MultiWidget->GetRenderWindows(); |
| 482 | for (auto& renderWindow : allRenderWindows) |
| 483 | { |
| 484 | renderWindow->UpdateLayoutDesignList(LayoutDesign::ALL_HORIZONTAL); |
| 485 | } |
| 486 | } |
| 487 | |
| 488 | void QmitkMultiWidgetLayoutManager::SetAllVerticalLayout() |
| 489 | { |
nothing calls this directly
no test coverage detected