| 107 | } |
| 108 | |
| 109 | void PatchReviewToolView::resizeEvent(QResizeEvent* ev) |
| 110 | { |
| 111 | bool vertical = (width() < height()); |
| 112 | m_editPatch.buttonsLayout->setDirection(vertical ? QBoxLayout::TopToBottom : QBoxLayout::LeftToRight); |
| 113 | m_editPatch.contentLayout->setDirection(vertical ? QBoxLayout::TopToBottom : QBoxLayout::LeftToRight); |
| 114 | m_editPatch.buttonsSpacer->changeSize(vertical ? 0 : 40, 0, QSizePolicy::Fixed, QSizePolicy::Fixed); |
| 115 | QWidget::resizeEvent(ev); |
| 116 | if(m_customWidget) { |
| 117 | m_editPatch.contentLayout->removeWidget( m_customWidget ); |
| 118 | m_editPatch.contentLayout->insertWidget(0, m_customWidget ); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | void PatchReviewToolView::startingNewReview() |
| 123 | { |
nothing calls this directly
no test coverage detected