Skip to content

Commit ff29cf5

Browse files
committed
Don't hard-set size of EffectView
This is optimistic and assumes all widgets that don't have a layout already fix their size. Even when this isn't true, it's better to set it inside the effects and not the EffectView.
1 parent 4a8d6f9 commit ff29cf5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/gui/EffectView.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ EffectView::EffectView( Effect * _model, QWidget * _parent ) :
9696
{
9797
m_controlView->layout()->setSizeConstraint(QLayout::SetFixedSize);
9898
}
99-
else
100-
{
101-
m_controlView->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
102-
}
99+
// else hope it already manages its size
103100
}
104101
m_subWindow->setWindowFlag(Qt::WindowMaximizeButtonHint, false);
105102
m_subWindow->hide();

0 commit comments

Comments
 (0)