From 3eac4b6c9daf60b55f8967443b27212cc65f6461 Mon Sep 17 00:00:00 2001 From: Starsam80 Date: Fri, 26 May 2017 19:24:07 -0600 Subject: [PATCH] Qt: Don't force a minimum size for the main window --- Source/Core/DolphinQt2/MainWindow.cpp | 6 +++++- Source/Core/DolphinQt2/MainWindow.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index da38a9dda0..d314ac2abf 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -259,7 +259,6 @@ void MainWindow::ConnectRenderWidget() void MainWindow::ConnectStack() { - m_stack->setMinimumSize(800, 600); m_stack->addWidget(m_game_list); setCentralWidget(m_stack); } @@ -621,3 +620,8 @@ void MainWindow::dropEvent(QDropEvent* event) settings.AddPath(path); } } + +QSize MainWindow::sizeHint() const +{ + return QSize(800, 600); +} diff --git a/Source/Core/DolphinQt2/MainWindow.h b/Source/Core/DolphinQt2/MainWindow.h index 48fbf9e3f2..5effb0ac8b 100644 --- a/Source/Core/DolphinQt2/MainWindow.h +++ b/Source/Core/DolphinQt2/MainWindow.h @@ -89,6 +89,7 @@ private: void dragEnterEvent(QDragEnterEvent* event) override; void dropEvent(QDropEvent* event) override; + QSize sizeHint() const override; QStackedWidget* m_stack; ToolBar* m_tool_bar;