Restrict "qt" embed method to Qt5 only
This commit is contained in:
@@ -659,6 +659,7 @@ void VstPlugin::createUI( QWidget * parent, bool isEffect )
|
||||
m_pluginSubWindow = new vstSubWin( gui->mainWindow()->workspace() );
|
||||
auto sw = m_pluginSubWindow.data();
|
||||
|
||||
#if QT_VERSION >= 0x050100
|
||||
if (m_embedMethod == "qt" )
|
||||
{
|
||||
QWindow* vw = QWindow::fromWinId(m_pluginWindowID);
|
||||
@@ -668,6 +669,8 @@ void VstPlugin::createUI( QWidget * parent, bool isEffect )
|
||||
// Tell remote that it is embedded
|
||||
// Wait for remote reply
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef LMMS_BUILD_LINUX
|
||||
else if (m_embedMethod == "xembed" )
|
||||
{
|
||||
|
||||
@@ -343,7 +343,10 @@ SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) :
|
||||
m_vstEmbedComboBox = new QComboBox( embed_tw );
|
||||
m_vstEmbedComboBox->move( XDelta, YDelta );
|
||||
m_vstEmbedComboBox->addItem( tr( "No embedding" ), "none" );
|
||||
#if QT_VERSION >= 0x050100
|
||||
m_vstEmbedComboBox->addItem( tr( "Embed using Qt API" ), "qt" );
|
||||
#endif
|
||||
|
||||
#ifdef LMMS_BUILD_LINUX
|
||||
if ( QX11Info::isPlatformX11() ) {
|
||||
m_vstEmbedComboBox->addItem( tr( "Embed using XEmbed protocol" ), "xembed" );
|
||||
|
||||
Reference in New Issue
Block a user