Qt: Don't force a minimum size for the main window

This commit is contained in:
Starsam80 2017-05-26 19:24:07 -06:00
parent 0f9ae6d361
commit 3eac4b6c9d
No known key found for this signature in database
GPG Key ID: 4E48BB48BA7E9026
2 changed files with 6 additions and 1 deletions

View File

@ -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);
}

View File

@ -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;