diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2011-02-01 15:02:32 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-02-07 07:24:00 (GMT) |
commit | d7043ed404982efc67fd252c04a055e4ed783d6b (patch) | |
tree | ea2647a03bf6b98ad32785ffb588ac67c1828ade /src/opengl | |
parent | a39b6c89efe78ab74767f70d60a2a9238a31c34a (diff) | |
download | Qt-d7043ed404982efc67fd252c04a055e4ed783d6b.zip Qt-d7043ed404982efc67fd252c04a055e4ed783d6b.tar.gz Qt-d7043ed404982efc67fd252c04a055e4ed783d6b.tar.bz2 |
Lighthouse: QGLWidgetPropogate the resizeEvent down to the Widget
before doing the QGLWidget event handling
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qgl_qpa.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp index 0f4b305..b865086 100644 --- a/src/opengl/qgl_qpa.cpp +++ b/src/opengl/qgl_qpa.cpp @@ -331,13 +331,14 @@ bool QGLWidget::event(QEvent *e) void QGLWidget::resizeEvent(QResizeEvent *e) { Q_D(QGLWidget); + + QWidget::resizeEvent(e); if (!isValid()) return; makeCurrent(); if (!d->glcx->initialized()) glInit(); resizeGL(width(), height()); - return QWidget::resizeEvent(e); } |