Skip to content

Commit

Permalink
Subwindows: Fix some size constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-w authored and PhysSong committed Jan 12, 2022
1 parent cff1bfb commit 4b3bf9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions plugins/LadspaEffect/LadspaControlDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
6 changes: 3 additions & 3 deletions src/gui/widgets/ControllerRackView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 );
}


Expand Down

0 comments on commit 4b3bf9f

Please sign in to comment.