CppTools: Prioritize project parts from active project

...when selecting one for the editor document.

Change-Id: I85066aaa0862870cb2db2fb2cb40c2b2c23b2cac
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Nikolai Kosjar
2016-12-16 13:12:04 +01:00
parent b8b6f348e0
commit 566ab175b3
16 changed files with 119 additions and 35 deletions

View File

@@ -36,10 +36,11 @@ ClangEditorDocumentParser::ClangEditorDocumentParser(const QString &filePath)
}
void ClangEditorDocumentParser::updateHelper(const QFutureInterface<void> &,
const CppTools::WorkingCopy &)
const CppTools::WorkingCopy &,
const ProjectExplorer::Project *activeProject)
{
State state_ = state();
state_.projectPart = determineProjectPart(filePath(), configuration(), state_);
state_.projectPart = determineProjectPart(filePath(), configuration(), state_, activeProject);
setState(state_);
}