summaryrefslogtreecommitdiffstats
path: root/src/tools/moc/moc.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-01-10 13:54:11 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2019-02-21 15:05:32 +0000
commitae9be1a63d7b579fb5bb8b4bf903f1a3efe7168f (patch)
treee2b6f7d28297aa66278a7113d2df7d57009501fe /src/tools/moc/moc.h
parentf6cf0442df52e8018f724a9234d2ae0267ecba85 (diff)
moc: Parse namespaces from other files
We can parse the namespaces in order to find the enums in them and populate the related metaobjects of the current file's classes. The symbol clashes are avoided by only generating metaobjects for namespaces defined in the same file. Fixes: QTBUG-71966 Fixes: QTBUG-72069 Change-Id: Ibdf21c3f9dae48d95b0952b3e220b4c29e30ecb8 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/tools/moc/moc.h')
-rw-r--r--src/tools/moc/moc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/moc/moc.h b/src/tools/moc/moc.h
index d6482f4e44..54f935a8da 100644
--- a/src/tools/moc/moc.h
+++ b/src/tools/moc/moc.h
@@ -188,6 +188,7 @@ Q_DECLARE_TYPEINFO(ClassDef::Interface, Q_MOVABLE_TYPE);
struct NamespaceDef : BaseDef {
bool hasQNamespace = false;
+ bool doGenerate = false;
};
Q_DECLARE_TYPEINFO(NamespaceDef, Q_MOVABLE_TYPE);