diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-09-17 10:19:27 (GMT) |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-09-17 10:19:27 (GMT) |
commit | 875c342b9f861c914e399f01142d70d65a6b39af (patch) | |
tree | 123a85c46e00c2773b27a445ac6993eead549d48 /src/declarative/qml/parser/qmljsglobal_p.h | |
parent | bec50e0b9cc1b536acc55776328152ceece65efe (diff) | |
download | Qt-875c342b9f861c914e399f01142d70d65a6b39af.zip Qt-875c342b9f861c914e399f01142d70d65a6b39af.tar.gz Qt-875c342b9f861c914e399f01142d70d65a6b39af.tar.bz2 |
Fixed the QML parser files to play nice when included in Creator, when
Creator is compiled against Qt with namespaces.
Diffstat (limited to 'src/declarative/qml/parser/qmljsglobal_p.h')
-rw-r--r-- | src/declarative/qml/parser/qmljsglobal_p.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/declarative/qml/parser/qmljsglobal_p.h b/src/declarative/qml/parser/qmljsglobal_p.h new file mode 100644 index 0000000..675c67b --- /dev/null +++ b/src/declarative/qml/parser/qmljsglobal_p.h @@ -0,0 +1,14 @@ +#ifndef QMLJSGLOBAL_P_H +#define QMLJSGLOBAL_P_H + +#include <QtCore/qglobal.h> + +#ifndef QT_CREATOR +#define QT_QML_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE +#define QT_QML_END_NAMESPACE QT_END_NAMESPACE +#else // !QT_CREATOR +#define QT_QML_BEGIN_NAMESPACE +#define QT_QML_END_NAMESPACE +#endif // QT_CREATOR + +#endif // QMLJSGLOBAL_P_H |