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:
parent
6ddef0007a
commit
ba2c485c55
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user