Embed in a separate window

This commit is contained in:
Javier Serrano Polo
2016-10-02 05:13:17 +02:00
committed by Lukas W
parent a81f4ca8e9
commit 878dd94e8d
10 changed files with 725 additions and 190 deletions

View File

@@ -76,7 +76,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
QPushButton * btn = new QPushButton( tr( "Show/hide" ) );
btn->setCheckable( true );
connect( btn, SIGNAL( toggled( bool ) ),
m_pluginWidget, SLOT( setVisible( bool ) ) );
SLOT( togglePluginUI( bool ) ) );
emit btn->click();
btn->setMinimumWidth( 78 );
@@ -264,3 +264,21 @@ VstEffectControlDialog::~VstEffectControlDialog()
//delete m_pluginWidget;
}
void VstEffectControlDialog::togglePluginUI( bool checked )
{
if( m_plugin )
{
if( checked )
{
m_plugin->showUI();
}
else
{
m_plugin->hideUI();
}
}
}