Add the path to the installed Qt Frameworks on Mac.

Otherwise all the Qt headers might not be found at all.

Task-number: QTCREATORBUG-1377
Reviewed-by: Tobias Hunger
Reviewed-by: Erik Verbruggen
This commit is contained in:
con
2010-10-18 17:12:44 +02:00
parent 8f0b3f463f
commit 9240ceaf35
3 changed files with 15 additions and 0 deletions

View File

@@ -426,6 +426,10 @@ void Qt4Project::updateCppCodeModel()
QStringList predefinedFrameworkPaths;
QByteArray predefinedMacros;
QString qtFrameworkPath = activeBC->qtVersion()->frameworkInstallPath();
if (!qtFrameworkPath.isEmpty())
predefinedFrameworkPaths.append(qtFrameworkPath);
ToolChain *tc = activeBC->toolChain();
if (tc) {
predefinedMacros = tc->predefinedMacros();