diff --git a/plugins/LadspaEffect/LadspaControlDialog.cpp b/plugins/LadspaEffect/LadspaControlDialog.cpp index f58ccb55b7e..a4ca8ffdfb0 100644 --- a/plugins/LadspaEffect/LadspaControlDialog.cpp +++ b/plugins/LadspaEffect/LadspaControlDialog.cpp @@ -42,6 +42,7 @@ LadspaControlDialog::LadspaControlDialog( LadspaControls * _ctl ) : m_stereoLink( NULL ) { QVBoxLayout * mainLay = new QVBoxLayout( this ); + mainLay->setSizeConstraint(QLayout::SetFixedSize); m_effectLayout = new QHBoxLayout(); mainLay->addLayout( m_effectLayout ); diff --git a/src/gui/widgets/ControllerRackView.cpp b/src/gui/widgets/ControllerRackView.cpp index cf1cf3c83ff..936015e7ba3 100644 --- a/src/gui/widgets/ControllerRackView.cpp +++ b/src/gui/widgets/ControllerRackView.cpp @@ -75,6 +75,9 @@ ControllerRackView::ControllerRackView( ) : layout->addWidget( m_addButton ); this->setLayout( layout ); + setFixedWidth( 350 ); + setMinimumHeight( 200 ); + QMdiSubWindow * subWin = gui->mainWindow()->addWindowedWidget( this ); // No maximize button @@ -84,9 +87,6 @@ ControllerRackView::ControllerRackView( ) : subWin->setAttribute( Qt::WA_DeleteOnClose, false ); subWin->move( 680, 310 ); - subWin->resize( 350, 200 ); - subWin->setFixedWidth( 350 ); - subWin->setMinimumHeight( 200 ); } diff --git a/src/gui/widgets/EffectView.cpp b/src/gui/widgets/EffectView.cpp index 0a5e46b3ffa..36f61ed5f9e 100644 --- a/src/gui/widgets/EffectView.cpp +++ b/src/gui/widgets/EffectView.cpp @@ -24,6 +24,7 @@ */ #include +#include #include #include #include @@ -108,8 +109,7 @@ EffectView::EffectView( Effect * _model, QWidget * _parent ) : if( m_controlView ) { m_subWindow = gui->mainWindow()->addWindowedWidget( m_controlView ); - m_subWindow->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ); - m_subWindow->setFixedSize( m_subWindow->size() ); + m_subWindow->layout()->setSizeConstraint(QLayout::SetFixedSize); Qt::WindowFlags flags = m_subWindow->windowFlags(); flags &= ~Qt::WindowMaximizeButtonHint;