diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-11-28 11:32:39 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-28 15:08:01 +0100 |
commit | 67e613963dddf2ecef7f26a4fea0c7709a211c49 (patch) | |
tree | 821a4adfb4b520956a2b22d301a73fe67ef8f465 /examples/opengl/hellowindow/hellowindow.cpp | |
parent | 45aa0a219a9fb15aad25ac5f1d4ba15752eddffb (diff) |
Polish the HelloWindow example.
- Add window menu (enabling the close button on Windows)
- Query threaded Open GL capability.
Change-Id: I938f154e242dba584e2f597ac44294ab5d3b7141
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'examples/opengl/hellowindow/hellowindow.cpp')
-rw-r--r-- | examples/opengl/hellowindow/hellowindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/hellowindow/hellowindow.cpp b/examples/opengl/hellowindow/hellowindow.cpp index 2cd3f8a1d3..2903ddd743 100644 --- a/examples/opengl/hellowindow/hellowindow.cpp +++ b/examples/opengl/hellowindow/hellowindow.cpp @@ -62,7 +62,7 @@ HelloWindow::HelloWindow(Renderer *renderer) , m_renderer(renderer) { setSurfaceType(QWindow::OpenGLSurface); - setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint); + setWindowFlags(Qt::Window | Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint); setGeometry(QRect(10, 10, 640, 480)); |