From 6f2d8fad8f03ceb969a218d370060e3d7e9971e8 Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Mon, 14 May 2018 00:43:31 -0400 Subject: [PATCH] Qt: allow to resize the render widget however wanted on render to main --- Source/Core/DolphinQt2/MainWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index b8692e1a27..d3e4a75bab 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -761,6 +761,7 @@ void MainWindow::ShowRenderWidget() m_stack->setCurrentIndex(m_stack->addWidget(m_render_widget)); connect(Host::GetInstance(), &Host::RequestTitle, this, &MainWindow::setWindowTitle); + m_stack->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); m_stack->repaint(); Host::GetInstance()->SetRenderFocus(isActiveWindow()); @@ -786,6 +787,7 @@ void MainWindow::HideRenderWidget(bool reinit) m_stack->removeWidget(m_render_widget); m_render_widget->setParent(nullptr); m_rendering_to_main = false; + m_stack->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); disconnect(Host::GetInstance(), &Host::RequestTitle, this, &MainWindow::setWindowTitle); setWindowTitle(QString::fromStdString(Common::scm_rev_str)); }