Qt4Projet: handle OBJECTIVE_HEADERS qmake var

Since there are no separate file extensions for Objective-C and
Objective-C++ headers, all headers can be parsed as Objective-C++.

Change-Id: I91500c53de0fc14ce7be0c7c534e443d1f1f725a
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Sergey Shambir
2013-03-21 22:10:38 +04:00
parent e12e797d59
commit 2bb2628054
3 changed files with 8 additions and 0 deletions

View File

@@ -592,6 +592,11 @@ void Qt4Project::updateCppCodeModel()
allFiles << file;
part->files << ProjectFile(file, ProjectFile::ObjCSource);
}
foreach (const QString &file, pro->variableValue(ObjCHeaderVar)) {
allFiles << file;
part->files << ProjectFile(file, ProjectFile::ObjCXXHeader);
}
pinfo.appendProjectPart(part);
}