Bump Qt minimum version to 5.9 (#7204)
* bump qt minimum version to 5.9 * cleanup cmake checks * Remove the obsoleted check. * Missed this while removing the check.
This commit is contained in:
@@ -735,14 +735,12 @@ void VstPlugin::createUI( QWidget * parent )
|
||||
|
||||
QWidget* container = nullptr;
|
||||
|
||||
#if QT_VERSION >= 0x050100
|
||||
if (m_embedMethod == "qt" )
|
||||
{
|
||||
QWindow* vw = QWindow::fromWinId(m_pluginWindowID);
|
||||
container = QWidget::createWindowContainer(vw, parent );
|
||||
container->installEventFilter(this);
|
||||
} else
|
||||
#endif
|
||||
|
||||
#ifdef LMMS_BUILD_WIN32
|
||||
if (m_embedMethod == "win32" )
|
||||
@@ -801,7 +799,6 @@ void VstPlugin::createUI( QWidget * parent )
|
||||
|
||||
bool VstPlugin::eventFilter(QObject *obj, QEvent *event)
|
||||
{
|
||||
#if QT_VERSION >= 0x050100
|
||||
if (embedMethod() == "qt" && obj == m_pluginWidget)
|
||||
{
|
||||
if (event->type() == QEvent::Show) {
|
||||
@@ -809,7 +806,6 @@ bool VstPlugin::eventFilter(QObject *obj, QEvent *event)
|
||||
}
|
||||
qDebug() << obj << event;
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user