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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/opengl/hellowindow/hellowindow.h b/examples/opengl/hellowindow/hellowindow.h
index 8f294b5ae3..0a88a0d75e 100644
--- a/examples/opengl/hellowindow/hellowindow.h
+++ b/examples/opengl/hellowindow/hellowindow.h
@@ -45,6 +45,7 @@
#include <QColor>
#include <QTime>
+#include <QSharedPointer>
QT_BEGIN_NAMESPACE
class QOpenGLContext;
@@ -88,7 +89,7 @@ class HelloWindow : public QWindow
{
Q_OBJECT
public:
- HelloWindow(Renderer *renderer);
+ explicit HelloWindow(const QSharedPointer<Renderer> &renderer);
void updateColor();
@@ -105,5 +106,5 @@ private:
int m_colorIndex;
QColor m_color;
- Renderer *m_renderer;
+ const QSharedPointer<Renderer> m_renderer;
};