Honor QTCREATOR_NO_CODE_INDEXER, supress include scanning.

This commit is contained in:
Daniel Molkentin
2009-08-04 18:16:05 +02:00
parent ec40996904
commit a33c7990d8

View File

@@ -774,6 +774,7 @@ void CppModelManager::updateProjectInfo(const ProjectInfo &pinfo)
m_projects.insert(pinfo.project, pinfo);
m_dirty = true;
if (qgetenv("QTCREATOR_NO_CODE_INDEXER").isNull()) {
QFuture<void> result = QtConcurrent::run(&CppModelManager::updateIncludesInPaths,
this,
pinfo.includePaths,
@@ -785,6 +786,7 @@ void CppModelManager::updateProjectInfo(const ProjectInfo &pinfo)
Core::ProgressManager::CloseOnSuccess);
}
}
}
QStringList CppModelManager::includesInPath(const QString &path) const
{