diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-04-14 15:51:22 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:09:59 -0300 |
commit | 97bff103c6de76a80088083ed2b909527f32c50f (patch) | |
tree | d452bb54983376ac9df2db8a08676a43d9ed432e /abstractmetabuilder.cpp | |
parent | 523a07f9b6c10dcd7809523e2491241bc2c1992a (diff) |
Removed methods includeFile and setIncludeFile from AbstractMetaAttribute.
These methods were moved to AbstractMetaFunction, because they are created
to store the include file of global enums and functions, but for enums, we
store the include file in TypeEntry, as functions doesn't have TypeEntries,
only global functions need this.
Also the new version of includeFile returns a instance of Include class
instead of a QString.
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r-- | abstractmetabuilder.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp index e33540e34..182f4456d 100644 --- a/abstractmetabuilder.cpp +++ b/abstractmetabuilder.cpp @@ -509,7 +509,8 @@ bool AbstractMetaBuilder::build(QIODevice* input) AbstractMetaFunction* metaFunc = traverseFunction(func); if (metaFunc) { - metaFunc->setIncludeFile(func->fileName()); + QFileInfo info(func->fileName()); + metaFunc->setIncludeFile(Include(Include::IncludePath, info.fileName())); m_globalFunctions << metaFunc; } } @@ -903,8 +904,6 @@ AbstractMetaEnum *AbstractMetaBuilder::traverseEnum(EnumModelItem enumItem, Abst default: break; } - metaEnum->setIncludeFile(enumItem->fileName()); - ReportHandler::debugMedium(QString(" - traversing enum %1").arg(metaEnum->fullName())); foreach (EnumeratorModelItem value, enumItem->enumerators()) { |