summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-06-08 12:07:22 +0200
committerKai Koehne <kai.koehne@qt.io>2017-06-08 14:33:18 +0000
commit6b9c7c617a306339929aea808413755c65ea393c (patch)
tree179782e69900b28a12a63f21742287d5d923ae93 /examples
parent18c46875effbfa051af1f67bcb6c575db11b994b (diff)
Fix use of Qt namespaces in examples
The Qt namespace should only be used for Qt types, not user (or example) types. Change-Id: I9361bcd8ad70fe6b8d3b2fe20494466901ceeaa8 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/scenegraph/rendernode/openglrenderer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/rendernode/openglrenderer.h b/examples/quick/scenegraph/rendernode/openglrenderer.h
index ea2bbcbc38..213e77fade 100644
--- a/examples/quick/scenegraph/rendernode/openglrenderer.h
+++ b/examples/quick/scenegraph/rendernode/openglrenderer.h
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -51,6 +51,8 @@ class QQuickItem;
class QOpenGLShaderProgram;
class QOpenGLBuffer;
+QT_END_NAMESPACE
+
class OpenGLRenderNode : public QSGRenderNode
{
public:
@@ -73,8 +75,6 @@ private:
QOpenGLBuffer *m_vbo = nullptr;
};
-QT_END_NAMESPACE
-
#endif // opengl
#endif