diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-05-05 07:02:14 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-05-05 13:21:08 +0000 |
commit | e702541972ed6bb233618ffb56a84b03cd360c3c (patch) | |
tree | 97af33e31362f9a02b10e4ba142548143976e121 /src/quick3d/quick3drender/qt3dquickrender_global.h | |
parent | 4cf737a0f1cc05ff9baa4df329761d65f69e340c (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.h | 2 |
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 |