From 4b3bf9f2a5d69a1c3e21c7d27a57e7f0a53477fd Mon Sep 17 00:00:00 2001 From: Lukas W Date: Sat, 29 Apr 2017 13:20:48 +0200 Subject: [PATCH] Subwindows: Fix some size constraints --- plugins/LadspaEffect/LadspaControlDialog.cpp | 1 + src/gui/widgets/ControllerRackView.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/LadspaEffect/LadspaControlDialog.cpp b/plugins/LadspaEffect/LadspaControlDialog.cpp index 0034dfd6d0c..0009f4dfda7 100644 --- a/plugins/LadspaEffect/LadspaControlDialog.cpp +++ b/plugins/LadspaEffect/LadspaControlDialog.cpp @@ -42,6 +42,7 @@ LadspaControlDialog::LadspaControlDialog( LadspaControls * _ctl ) : m_stereoLink( nullptr ) { 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 d6b7cc410d9..99d9241d736 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 = getGUI()->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 ); }