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 <lars.knoll@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Lars Knoll 2012-09-21 11:37:31 +02:00 committed by The Qt Project
parent 6ddef0007a
commit ba2c485c55

View File

@ -79,7 +79,7 @@
#include <algorithm>
#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