summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellowindow/hellowindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/hellowindow/hellowindow.h')
-rw-r--r--examples/opengl/hellowindow/hellowindow.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/examples/opengl/hellowindow/hellowindow.h b/examples/opengl/hellowindow/hellowindow.h
index adb85c1a6e..27cae4be7d 100644
--- a/examples/opengl/hellowindow/hellowindow.h
+++ b/examples/opengl/hellowindow/hellowindow.h
@@ -40,21 +40,15 @@
#include <QWindow>
-#include <QtGui/qopengl.h>
-#include <QtGui/qopenglshaderprogram.h>
-
#include <QColor>
-#include <QTime>
+#include <QOpenGLShaderProgram>
#include <QSharedPointer>
-
-QT_BEGIN_NAMESPACE
-class QOpenGLContext;
-class QTimer;
-QT_END_NAMESPACE
+#include <QTimer>
class Renderer : public QObject
{
Q_OBJECT
+
public:
explicit Renderer(const QSurfaceFormat &format, Renderer *share = 0, QScreen *screen = 0);
@@ -89,6 +83,7 @@ private:
class HelloWindow : public QWindow
{
Q_OBJECT
+
public:
explicit HelloWindow(const QSharedPointer<Renderer> &renderer);