summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qsurface.h
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@digia.com>2013-12-18 14:48:22 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-12 20:12:17 +0100
commiteacd58d4e78e7238ba5fcca90ba960aaf3ebd263 (patch)
tree779bf1735aecb7985bc3136264b9147eb23d5374 /src/gui/kernel/qsurface.h
parent5ae5bebb93ec38e17c0dcb9bec47e0ebfbce4937 (diff)
Enabling QQuickWidget and QOpenGLWidget
Enable child widgets (without a native window) that render to an FBO and are composed with the raster backingstore by the platform plugin. A preliminary version of QOpenGLWidget is included as private API. Change-Id: I8f984a4d7db285069ce3d6564707942c823d890d Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'src/gui/kernel/qsurface.h')
-rw-r--r--src/gui/kernel/qsurface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qsurface.h b/src/gui/kernel/qsurface.h
index 8dbc230c10..c4a3276372 100644
--- a/src/gui/kernel/qsurface.h
+++ b/src/gui/kernel/qsurface.h
@@ -64,7 +64,8 @@ public:
enum SurfaceType {
RasterSurface,
- OpenGLSurface
+ OpenGLSurface,
+ RasterGLSurface
};
virtual ~QSurface();
@@ -75,6 +76,7 @@ public:
virtual QPlatformSurface *surfaceHandle() const = 0;
virtual SurfaceType surfaceType() const = 0;
+ bool supportsOpenGL() const;
virtual QSize size() const = 0;