diff options
Diffstat (limited to 'src/opengl/qwindowsurface_gl_p.h')
-rw-r--r-- | src/opengl/qwindowsurface_gl_p.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/opengl/qwindowsurface_gl_p.h b/src/opengl/qwindowsurface_gl_p.h index 738d6ad..f895203 100644 --- a/src/opengl/qwindowsurface_gl_p.h +++ b/src/opengl/qwindowsurface_gl_p.h @@ -65,8 +65,9 @@ class QRegion; class QWidget; struct QGLWindowSurfacePrivate; -class QGLWindowSurface : public QWindowSurface, public QPaintDevice +class QGLWindowSurface : public QObject, public QWindowSurface, public QPaintDevice { + Q_OBJECT public: QGLWindowSurface(QWidget *window); ~QGLWindowSurface(); @@ -74,6 +75,7 @@ public: QPaintDevice *paintDevice(); void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset); void setGeometry(const QRect &rect); + void updateGeometry(); bool scroll(const QRegion &area, int dx, int dy); void beginPaint(const QRegion ®ion); @@ -90,6 +92,9 @@ public: protected: int metric(PaintDeviceMetric metric) const; +private slots: + void deleted(QObject *object); + private: void hijackWindow(QWidget *widget); |