From: Lars Knoll Date: Fri, 21 Sep 2012 09:37:31 +0000 (+0200) Subject: Ignore the QT_NAMESPACE for moc runs X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba2c485c55eb2d0bf4c2478f604f51840908d30a;p=profile%2Fivi%2Fqtbase.git Ignore the QT_NAMESPACE for moc runs Moc should not see a defined QT_NAMESPACE, to keep the names of all symbols consistent with an un-namespaced Qt. Change-Id: Ia72afabaa0820b02a0863148510122ce942a5082 Reviewed-by: Lars Knoll Reviewed-by: Olivier Goffart --- diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 06e490a..60b90dc 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -79,7 +79,7 @@ #include -#ifndef QT_NAMESPACE /* user namespace */ +#if !defined(QT_NAMESPACE) || defined(Q_MOC_RUN) /* user namespace */ # define QT_PREPEND_NAMESPACE(name) ::name # define QT_USE_NAMESPACE