mirror of
https://github.com/LMMS/lmms.git
synced 2026-07-28 06:16:38 -04:00
Embed in a separate window
This commit is contained in:
committed by
Lukas W
parent
a81f4ca8e9
commit
878dd94e8d
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user