diff --git a/src/plugins/duieditor/parser/qmljsglobal_p.h b/src/plugins/duieditor/parser/qmljsglobal_p.h
index 675c67bb0d7eff0c9534aa76610d00880dd79c2c..99bb19fd248906d5d767280e01a4ac7746562de7 100644
--- a/src/plugins/duieditor/parser/qmljsglobal_p.h
+++ b/src/plugins/duieditor/parser/qmljsglobal_p.h
@@ -3,12 +3,12 @@
 
 #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
+#ifdef QT_CREATOR
 #define QT_QML_BEGIN_NAMESPACE
 #define QT_QML_END_NAMESPACE
+#else // !QT_CREATOR
+#define QT_QML_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
+#define QT_QML_END_NAMESPACE QT_END_NAMESPACE
 #endif // QT_CREATOR
 
 #endif // QMLJSGLOBAL_P_H