summaryrefslogtreecommitdiffstats
path: root/examples/opengl
diff options
context:
space:
mode:
authorMorten Sorvig <morten.sorvig@nokia.com>2011-06-22 13:33:27 +0200
committerMorten Sorvig <morten.sorvig@nokia.com>2011-06-22 14:10:26 +0200
commitdef5901955e8b4cfcb9e2cd83c7dcf9ed0508a0a (patch)
treec5e5dd1e8ecfd1ff8acf48130909b0412f84b728 /examples/opengl
parent0e4844aa243396aa2af4b89e94919854f142f52e (diff)
Reintroduce QWindow::SurfaceType
On Cocoa it makes sense to distinguish between the two window types. Reviewed-by: Samuel
Diffstat (limited to 'examples/opengl')
-rw-r--r--examples/opengl/hellowindow/hellowindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/opengl/hellowindow/hellowindow.cpp b/examples/opengl/hellowindow/hellowindow.cpp
index afdf08026a..9575d3e3c7 100644
--- a/examples/opengl/hellowindow/hellowindow.cpp
+++ b/examples/opengl/hellowindow/hellowindow.cpp
@@ -24,6 +24,7 @@ HelloWindow::HelloWindow(Renderer *renderer)
: m_colorIndex(0)
, m_renderer(renderer)
{
+ setSurfaceType(QWindow::OpenGLSurface);
setWindowTitle(QLatin1String("Hello Window"));
setFormat(renderer->format());