summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglpaintdevice_qws.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qglpaintdevice_qws.cpp')
-rw-r--r--src/opengl/qglpaintdevice_qws.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/opengl/qglpaintdevice_qws.cpp b/src/opengl/qglpaintdevice_qws.cpp
index 600efa6..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)
{
@@ -72,11 +65,7 @@ QWSGLPaintDevice::~QWSGLPaintDevice()
QPaintEngine* QWSGLPaintDevice::paintEngine() const
{
-#if !defined(QT_OPENGL_ES_2)
return qt_qgl_paint_engine();
-#else
- return 0; // XXX
-#endif
}
int QWSGLPaintDevice::metric(PaintDeviceMetric m) const
@@ -84,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