aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2014-11-23 15:33:10 +0100
committerSylvain Munaut <tnt@246tNt.com>2014-11-23 15:34:12 +0100
commit36ce5e78430bcf87e219a97219051a9d62d1d834 (patch)
tree9a051e739a4015eb5b176b1a7df07a491ee65ff6
parentf16d0ffafb29f5004c70d7fde85e7366d2024c8e (diff)
gr-fosphor/qt: Explicitely set a size policy on the QGLSurface
Without it, some layout don't work and the widget ends up being zero sized Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--lib/QGLSurface.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/QGLSurface.cc b/lib/QGLSurface.cc
index 6b771bf..f9e7613 100644
--- a/lib/QGLSurface.cc
+++ b/lib/QGLSurface.cc
@@ -32,6 +32,7 @@ QGLSurface::QGLSurface(QWidget *parent, qt_sink_c_impl *block)
{
this->doneCurrent();
this->setFocusPolicy(Qt::StrongFocus);
+ this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
}
void