summaryrefslogtreecommitdiffstats
path: root/src/quick3d/quick3drender/qt3dquickrender_global.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-05-05 07:02:14 +0200
committerSean Harmer <sean.harmer@kdab.com>2016-05-05 13:21:08 +0000
commite702541972ed6bb233618ffb56a84b03cd360c3c (patch)
tree97af33e31362f9a02b10e4ba142548143976e121 /src/quick3d/quick3drender/qt3dquickrender_global.h
parent4cf737a0f1cc05ff9baa4df329761d65f69e340c (diff)
Introduce local macros for declaring types as movable/primitive/shared
The QtCore macros aren't really suited to a namespaced library like Qt3D. In particular, the use of Q_DECLARE_SHARED is wrong, because it places the free swap() function in the Qt's namespace when it should be in the same (inner) namespace the type is in. Q_DECLARE_TYPEINFO, otoh, is just inconvenient to use because it requires exiting and later re-entering of the Qt3D namespace(s). The new macros do this implicitly. Change-Id: Ic91f447656f08ed59c118ce09cb5ac90ad212955 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/quick3d/quick3drender/qt3dquickrender_global.h')
-rw-r--r--src/quick3d/quick3drender/qt3dquickrender_global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick3d/quick3drender/qt3dquickrender_global.h b/src/quick3d/quick3drender/qt3dquickrender_global.h
index 1e06c7043..7c21243e3 100644
--- a/src/quick3d/quick3drender/qt3dquickrender_global.h
+++ b/src/quick3d/quick3drender/qt3dquickrender_global.h
@@ -40,7 +40,7 @@
#ifndef QT3DQUICKRENDER_GLOBAL_H
#define QT3DQUICKRENDER_GLOBAL_H
-#include <QtCore/qglobal.h>
+#include <Qt3DCore/qt3dcore_global.h>
QT_BEGIN_NAMESPACE