summaryrefslogtreecommitdiffstats
path: root/examples/opengl/2dpainting/glwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/2dpainting/glwidget.h')
-rw-r--r--examples/opengl/2dpainting/glwidget.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/opengl/2dpainting/glwidget.h b/examples/opengl/2dpainting/glwidget.h
index 0e6786a308..07b279117c 100644
--- a/examples/opengl/2dpainting/glwidget.h
+++ b/examples/opengl/2dpainting/glwidget.h
@@ -41,12 +41,12 @@
#ifndef GLWIDGET_H
#define GLWIDGET_H
-#include <QGLWidget>
+#include <QOpenGLWidget>
//! [0]
class Helper;
-class GLWidget : public QGLWidget
+class GLWidget : public QOpenGLWidget
{
Q_OBJECT
@@ -57,7 +57,7 @@ public slots:
void animate();
protected:
- void paintEvent(QPaintEvent *event);
+ void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
private:
Helper *helper;