From 954c5e9952dce17e804e8b43581577ded3af08a0 Mon Sep 17 00:00:00 2001 From: SpomJ Date: Thu, 28 Nov 2024 18:43:06 +0300 Subject: [PATCH] Move window constraints to embed in LadspaBrowser (fix resizing) --- plugins/LadspaBrowser/LadspaBrowser.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/plugins/LadspaBrowser/LadspaBrowser.cpp b/plugins/LadspaBrowser/LadspaBrowser.cpp index e6a31e15a3c..6f2111234dc 100644 --- a/plugins/LadspaBrowser/LadspaBrowser.cpp +++ b/plugins/LadspaBrowser/LadspaBrowser.cpp @@ -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 ); } }