summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qglpaintdevice_qws.cpp9
-rw-r--r--src/opengl/qwindowsurface_gl.cpp2
2 files changed, 2 insertions, 9 deletions
diff --git a/src/opengl/qglpaintdevice_qws.cpp b/src/opengl/qglpaintdevice_qws.cpp
index 8c2f27d..1512278 100644
--- a/src/opengl/qglpaintdevice_qws.cpp
+++ b/src/opengl/qglpaintdevice_qws.cpp
@@ -52,13 +52,6 @@ public:
QWidget *widget;
};
-class QMetricAccessor : public QWidget {
-public:
- int metric(PaintDeviceMetric m) {
- return QWidget::metric(m);
- }
-};
-
QWSGLPaintDevice::QWSGLPaintDevice(QWidget *widget) :
d_ptr(new QWSGLPaintDevicePrivate)
{
@@ -80,7 +73,7 @@ int QWSGLPaintDevice::metric(PaintDeviceMetric m) const
Q_D(const QWSGLPaintDevice);
Q_ASSERT(d->widget);
- return ((QMetricAccessor *) d->widget)->metric(m);
+ return qt_paint_device_metric(d->widget, m);
}
QWSGLWindowSurface* QWSGLPaintDevice::windowSurface() const
diff --git a/src/opengl/qwindowsurface_gl.cpp b/src/opengl/qwindowsurface_gl.cpp
index b341243..df84a76 100644
--- a/src/opengl/qwindowsurface_gl.cpp
+++ b/src/opengl/qwindowsurface_gl.cpp
@@ -280,7 +280,7 @@ QGLContext* QGLWindowSurfaceGLPaintDevice::context() const
int QGLWindowSurfaceGLPaintDevice::metric(PaintDeviceMetric m) const
{
- return d->q_ptr->window()->metric(m);
+ return qt_paint_device_metric(d->q_ptr->window(), m);
}
QPaintEngine *QGLWindowSurfaceGLPaintDevice::paintEngine() const