Set real size to minimum for display
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Oct 2014 23:42:24 -0700
2 files changed,
2 insertions(+),
4 deletions(-)
M
src/platform/qt/Display.cpp
→
src/platform/qt/Display.cpp
@@ -28,7 +28,8 @@ : QGLWidget(format, parent)
, m_painter(nullptr) , m_drawThread(nullptr) { - setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); + setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); + setMinimumSize(240, 160); setAutoBufferSwap(false); }
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -19,9 +19,6 @@ #ifdef USE_GDB_STUB
, m_gdbController(nullptr) #endif { - setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - setMinimumSize(240, 160); - m_controller = new GameController(this); m_logView = new LogView();