diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-09-07 15:10:35 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-09-08 16:36:16 (GMT) |
commit | e3e7cf545116c194bd5cfe79b28ea37c8bf78219 (patch) | |
tree | 72696f91453009c79ac0729a07fd63f09b7bad15 /src/opengl/qglpaintdevice_p.h | |
parent | 4feed48fdd738ed99cba86a4214e238a3e7275ed (diff) | |
download | Qt-e3e7cf545116c194bd5cfe79b28ea37c8bf78219.zip Qt-e3e7cf545116c194bd5cfe79b28ea37c8bf78219.tar.gz Qt-e3e7cf545116c194bd5cfe79b28ea37c8bf78219.tar.bz2 |
Make QGLWindowSurface use new QGLPaintDevice API
Diffstat (limited to 'src/opengl/qglpaintdevice_p.h')
-rw-r--r-- | src/opengl/qglpaintdevice_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/opengl/qglpaintdevice_p.h b/src/opengl/qglpaintdevice_p.h index 6d34b1b..b0e8826 100644 --- a/src/opengl/qglpaintdevice_p.h +++ b/src/opengl/qglpaintdevice_p.h @@ -62,6 +62,8 @@ public: QGLPaintDevice(); virtual ~QGLPaintDevice(); + int devType() const {return QInternal::OpenGL;} + virtual void beginPaint(); virtual void ensureActiveTarget(); virtual void endPaint(); @@ -74,7 +76,7 @@ public: virtual QGLContext* context() const = 0; QGLFormat format() const; - virtual QSize size() const; + virtual QSize size() const = 0; // returns the QGLPaintDevice for the given QPaintDevice static QGLPaintDevice* getDevice(QPaintDevice*); |