summaryrefslogtreecommitdiffstats
path: root/examples/opengl/cube/mainwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/cube/mainwidget.h')
-rw-r--r--examples/opengl/cube/mainwidget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/opengl/cube/mainwidget.h b/examples/opengl/cube/mainwidget.h
index 595173b65d..75d069d2f6 100644
--- a/examples/opengl/cube/mainwidget.h
+++ b/examples/opengl/cube/mainwidget.h
@@ -2,6 +2,7 @@
#define MAINWIDGET_H
#include <QtOpenGL/QGLWidget>
+#include <QtOpenGL/QGLFunctions>
#include <QMatrix4x4>
#include <QQuaternion>
@@ -12,7 +13,7 @@ class QGLShaderProgram;
class GeometryEngine;
-class MainWidget : public QGLWidget
+class MainWidget : public QGLWidget, protected QGLFunctions
{
Q_OBJECT
public: