From 642a26dab4e36982b53bec738026d9825b530e38 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Sat, 23 Jun 2012 11:12:10 +0200 Subject: [PATCH] Fix setMouseTracking on QGLWidget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the function altogether. Alternatively we could call the base class implementation but there is no reason to keep this confusing, non-virtual override. Change-Id: Ie8724f7bbc6666fdace7ff777bcde99f3d8a9561 Reviewed-by: Samuel Rødal --- src/opengl/qgl.h | 2 -- src/opengl/qgl_qpa.cpp | 5 ----- 2 files changed, 7 deletions(-) diff --git a/src/opengl/qgl.h b/src/opengl/qgl.h index 39d63c12fe..2f2c9eadda 100644 --- a/src/opengl/qgl.h +++ b/src/opengl/qgl.h @@ -423,8 +423,6 @@ public: static QImage convertToGLFormat(const QImage& img); - void setMouseTracking(bool enable); - const QGLColormap & colormap() const; void setColormap(const QGLColormap & map); diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp index 05c0d9fe39..2b3aca7928 100644 --- a/src/opengl/qgl_qpa.cpp +++ b/src/opengl/qgl_qpa.cpp @@ -336,11 +336,6 @@ void QGLWidgetPrivate::cleanupColormaps() { } -void QGLWidget::setMouseTracking(bool enable) -{ - Q_UNUSED(enable); -} - bool QGLWidget::event(QEvent *e) { return QWidget::event(e);