diff --git a/plugins/Vestige/Vestige.cpp b/plugins/Vestige/Vestige.cpp index 552f76406de..7c916f3a06b 100644 --- a/plugins/Vestige/Vestige.cpp +++ b/plugins/Vestige/Vestige.cpp @@ -937,12 +937,9 @@ ManageVestigeInstrumentView::ManageVestigeInstrumentView( Instrument * _instrume widget = new QWidget(this); l = new QGridLayout( this ); - m_vi->m_subWindow = getGUI()->mainWindow()->addWindowedWidget(nullptr, Qt::SubWindow | - Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowSystemMenuHint); - m_vi->m_subWindow->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::MinimumExpanding ); - m_vi->m_subWindow->setFixedWidth( 960 ); - m_vi->m_subWindow->setMinimumHeight( 300 ); - m_vi->m_subWindow->setWidget(m_vi->m_scrollArea); + m_vi->m_subWindow = getGUI()->mainWindow()->addWindowedWidget(m_vi->m_scrollArea); + m_vi->m_scrollArea->setFixedWidth(960); + m_vi->m_scrollArea->setMinimumHeight(300); m_vi->m_subWindow->setWindowTitle( m_vi->instrumentTrack()->name() + tr( " - VST plugin control" ) ); m_vi->m_subWindow->setWindowIcon( PLUGIN_NAME::getIconPixmap( "logo" ) ); diff --git a/plugins/Vestige/Vestige.h b/plugins/Vestige/Vestige.h index 6a308ad2c20..4dcc0b8e5d8 100644 --- a/plugins/Vestige/Vestige.h +++ b/plugins/Vestige/Vestige.h @@ -32,6 +32,7 @@ #include "Instrument.h" #include "InstrumentView.h" +#include "SubWindow.h" class QPixmap; @@ -87,7 +88,7 @@ protected slots: QMutex m_pluginMutex; QString m_pluginDLL; - QMdiSubWindow * m_subWindow; + gui::SubWindow* m_subWindow; QScrollArea * m_scrollArea; FloatModel ** knobFModel; QObject * p_subWindow;