Set real size to minimum for display

This commit is contained in:
Jeffrey Pfau 2014-10-15 23:42:24 -07:00
parent 05cb9d47ab
commit be9363b7f4
2 changed files with 2 additions and 4 deletions

View File

@ -28,7 +28,8 @@ Display::Display(QGLFormat format, QWidget* parent)
, m_painter(nullptr)
, m_drawThread(nullptr)
{
setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
setMinimumSize(240, 160);
setAutoBufferSwap(false);
}

View File

@ -19,9 +19,6 @@ Window::Window(QWidget* parent)
, m_gdbController(nullptr)
#endif
{
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
setMinimumSize(240, 160);
m_controller = new GameController(this);
m_logView = new LogView();