summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/opengl/glbox.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-04 15:24:37 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-04 15:47:31 +0200
commitbe86ffcb985e34dcd802bac9ff17a8930b11f9c9 (patch)
tree833d30bc9904aee931f90700ca711c71af2d7826 /examples/activeqt/opengl/glbox.h
parent0e128824e54a4994682023b7fd0fbb4c1938892c (diff)
Fix class structure and definitions
- Add override - Use "= default" for trivial constructors/destructors - Q_DISABLE_COPY_MOVE to delete move constructors and assignment Change-Id: If773ad8c092ab8000b268c4231f7f27e5f484e56 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/activeqt/opengl/glbox.h')
-rw-r--r--examples/activeqt/opengl/glbox.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/activeqt/opengl/glbox.h b/examples/activeqt/opengl/glbox.h
index 00be3b9..b1bd828 100644
--- a/examples/activeqt/opengl/glbox.h
+++ b/examples/activeqt/opengl/glbox.h
@@ -75,7 +75,7 @@ class GLBox : public QGLWidget,
public:
explicit GLBox(QWidget *parent, const char *name = nullptr);
virtual ~GLBox();
- QAxAggregated *createAggregate();
+ QAxAggregated *createAggregate() override;
public slots:
void setXRotation(int degrees);
@@ -84,9 +84,9 @@ public slots:
void setZRotation(int degrees);
protected:
- void initializeGL();
- void paintGL();
- void resizeGL(int w, int h);
+ void initializeGL() override;
+ void paintGL() override;
+ void resizeGL(int w, int h) override;
virtual GLuint makeObject();
private: