diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-07-04 13:39:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-04 13:39:44 +0200 |
| commit | 5a41bfaf6f8de404dc60e2ce313d675e67342115 (patch) | |
| tree | 5a07665d63429d84fd640654495ad38b726450ea /Source/Core | |
| parent | 6a7dd01f1cab6d6a5c892fc447a5092e931797e1 (diff) | |
| parent | 3eac4b6c9daf60b55f8967443b27212cc65f6461 (diff) | |
Merge pull request #5740 from Starsam80/qt-size
Qt: Don't force a minimum size for the main window
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt2/MainWindow.cpp | 6 | ||||
| -rw-r--r-- | Source/Core/DolphinQt2/MainWindow.h | 1 |
2 files changed, 6 insertions, 1 deletions
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; |
