summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_qpa.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-12-09 08:00:02 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-04 14:18:21 (GMT)
commitdd72b151b500838475f2ec40695449a37acd3922 (patch)
treedaa27dee60c6cf94bd630d4947b37bdd57cd2ddb /src/opengl/qgl_qpa.cpp
parent337f75854883fb93e1b4f41e10c79dc7c352f4a6 (diff)
downloadQt-dd72b151b500838475f2ec40695449a37acd3922.zip
Qt-dd72b151b500838475f2ec40695449a37acd3922.tar.gz
Qt-dd72b151b500838475f2ec40695449a37acd3922.tar.bz2
Remove Lighthouse specific code in QGLWidget constructor
truth to be told, I can't remember why I decided that it was a good idea to have the code there. But clearly now I don't think so anymore. Such initialisation should happen in qgl_qpa.cpp chooseContext. If we tear down the window and the context then that has to be solved elsewhere.
Diffstat (limited to 'src/opengl/qgl_qpa.cpp')
-rw-r--r--src/opengl/qgl_qpa.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp
index 415e915..52eb57f 100644
--- a/src/opengl/qgl_qpa.cpp
+++ b/src/opengl/qgl_qpa.cpp
@@ -325,11 +325,6 @@ void QGLWidget::setMouseTracking(bool enable)
bool QGLWidget::event(QEvent *e)
{
Q_D(QGLWidget);
- if (e->type() == QEvent::WinIdChange) {
- if (platformWindow()) {
- d->glcx = QGLContext::fromPlatformGLContext(platformWindow()->glContext());
- }
- }
return QWidget::event(e);
}