diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-04-15 18:45:40 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:00 -0300 |
commit | 8c03a55d03b2e63b760ec3be4a37285304b65b32 (patch) | |
tree | 4da79f7d8342ffdc5bc3fc6f317caad44f9f068e /abstractmetabuilder.h | |
parent | f267a89cfb4d5bf4e405db9ab1360d90ee70f867 (diff) |
Do not set the include file on TypeEntries when the include file does not exists or
it's the global header.
Diffstat (limited to 'abstractmetabuilder.h')
-rw-r--r-- | abstractmetabuilder.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/abstractmetabuilder.h b/abstractmetabuilder.h index 9aef28a55..e676f1217 100644 --- a/abstractmetabuilder.h +++ b/abstractmetabuilder.h @@ -29,7 +29,8 @@ #include "typesystem.h" #include "typeparser.h" -#include <QtCore/QSet> +#include <QSet> +#include <QFileInfo> class TypeDatabase; @@ -170,6 +171,13 @@ public: return m_qmetatypeDeclaredTypenames; } + /** + * AbstractMetaBuilder should know what's the global header being used, + * so any class declared under this header wont have the include file + * filled. + */ + void setGlobalHeader(const QString& globalHeader); + protected: AbstractMetaClass *argumentToClass(ArgumentModelItem); @@ -213,6 +221,7 @@ protected: private: void sortLists(); AbstractMetaArgumentList reverseList(const AbstractMetaArgumentList& list); + void setInclude(TypeEntry* te, const QString& fileName) const; AbstractMetaClassList m_metaClasses; AbstractMetaClassList m_templates; @@ -242,6 +251,7 @@ private: QSet<QString> m_qmetatypeDeclaredTypenames; QString m_logDirectory; + QFileInfo m_globalHeader; }; #endif // ABSTRACTMETBUILDER_H |