summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/tst_moc.cpp
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kdab.com>2016-08-23 22:32:11 +0300
committerBogDan Vatra <bogdan@kdab.com>2016-09-06 10:29:21 +0000
commit21b7661a797ecf77fbcad4380e6dcb2ade929a18 (patch)
tree0536792e237d686e3cae1b35ebd0ad4dca834393 /tests/auto/tools/moc/tst_moc.cpp
parent23ef3b04ebfc0c7a87800b4ff09444c854e31fdb (diff)
Parse namespaces only for current file, add Q_NAMESPACE support to qmake
Parsing the other files will (re)generate the same metaobject info in two places Change-Id: I8984ed30751a7587de870f55dd427f067d1b2495 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/tools/moc/tst_moc.cpp')
-rw-r--r--tests/auto/tools/moc/tst_moc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp
index 714ae19a10..56d6939102 100644
--- a/tests/auto/tools/moc/tst_moc.cpp
+++ b/tests/auto/tools/moc/tst_moc.cpp
@@ -69,6 +69,7 @@
#include "non-gadget-parent-class.h"
#include "grand-parent-gadget-class.h"
+#include "namespace.h"
#ifdef Q_MOC_RUN
// check that moc can parse these constructs, they are being used in Windows winsock2.h header