MCPcopy Create free account
hub / github.com/KDE/kdevelop / resizeEvent

Method resizeEvent

plugins/patchreview/patchreviewtoolview.cpp:109–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void 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
122void PatchReviewToolView::startingNewReview()
123{

Callers

nothing calls this directly

Calls 1

removeWidgetMethod · 0.80

Tested by

no test coverage detected