Skip to content

Commit

Permalink
Move window constraints to embed in LadspaBrowser (fix resizing)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpomJ committed Nov 28, 2024
1 parent 465b1e6 commit 954c5e9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions plugins/LadspaBrowser/LadspaBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,13 @@ LadspaBrowserView::LadspaBrowserView( ToolPlugin * _tool ) :
hlayout->addWidget( ws );
hlayout->addSpacing( 10 );
hlayout->addStretch();

layout()->setSizeConstraint(QLayout::SetFixedSize);

hide();
if( parentWidget() )
{
parentWidget()->hide();
parentWidget()->layout()->setSizeConstraint(
QLayout::SetFixedSize );

Qt::WindowFlags flags = parentWidget()->windowFlags();
flags |= Qt::MSWindowsFixedSizeDialogHint;
flags &= ~Qt::WindowMaximizeButtonHint;
parentWidget()->setWindowFlags( flags );
}
}

Expand Down

0 comments on commit 954c5e9

Please sign in to comment.