forked from qt-creator/qt-creator
Qt4Project CodeModel: Use the project's mkspec not the qtversion's
They might differ if the user passes any -spec parameter Change-Id: I9408541a09a6a687fdbae879bd1ab4c92e62aa1e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
committed by
Oswald Buddenhagen
parent
9e5c6518c0
commit
867d655278
@@ -542,8 +542,10 @@ void Qt4Project::updateCppCodeModel()
|
||||
if (qtVersion) {
|
||||
if (!qtVersion->frameworkInstallPath().isEmpty())
|
||||
part->frameworkPaths.append(qtVersion->frameworkInstallPath());
|
||||
part->includePaths.append(qtVersion->mkspecPath().toString());
|
||||
|
||||
}
|
||||
if (Qt4ProFileNode *node = rootQt4ProjectNode())
|
||||
part->includePaths.append(node->resolvedMkspecPath());
|
||||
|
||||
// part->precompiledHeaders
|
||||
part->precompiledHeaders.append(pro->variableValue(PrecompiledHeaderVar));
|
||||
|
||||
Reference in New Issue
Block a user