From 97bff103c6de76a80088083ed2b909527f32c50f Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Wed, 14 Apr 2010 15:51:22 -0300 Subject: 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. --- abstractmetabuilder.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'abstractmetabuilder.cpp') 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()) { -- cgit v1.2.3