summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl_es2/glwidget.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-04-24 14:36:57 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-12 10:34:34 +0200
commita57b8409a225ee2597768867c21774647f8e28bc (patch)
treecb5a69b8a7168f0ddbf5ed0a76660f14c180ac58 /examples/opengl/hellogl_es2/glwidget.h
parentfd80cad07e9ab98ebb8cd1b056aeabc0aed336ea (diff)
Fix up examples for dynamic opengl builds
Change-Id: Id311b00fe7783a3175dc1c4a38f627c78c470761 Reviewed-by: Jørgen Lind <jorgen.lind@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'examples/opengl/hellogl_es2/glwidget.h')
-rw-r--r--examples/opengl/hellogl_es2/glwidget.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/opengl/hellogl_es2/glwidget.h b/examples/opengl/hellogl_es2/glwidget.h
index 8ed86b1e01..00073aa047 100644
--- a/examples/opengl/hellogl_es2/glwidget.h
+++ b/examples/opengl/hellogl_es2/glwidget.h
@@ -42,15 +42,16 @@
#define GLWIDGET_H
#include <QGLWidget>
-#include <QtGui/qvector3d.h>
-#include <QtGui/qmatrix4x4.h>
-#include <QtOpenGL/qglshaderprogram.h>
+#include <QOpenGLFunctions>
+#include <QGLShaderProgram>
+#include <QVector3D>
+#include <QMatrix4x4>
#include <QTime>
#include <QVector>
class Bubble;
-class GLWidget : public QGLWidget {
-
+class GLWidget : public QGLWidget, protected QOpenGLFunctions
+{
Q_OBJECT
public:
GLWidget(QWidget *parent = 0);