forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.2'
Conflicts: qtcreator.pri qtcreator.qbs src/plugins/android/androidglobal.h Change-Id: I3367bf2ea47c088989175dddeed2210294346f4c
This commit is contained in:
@@ -429,19 +429,20 @@ QString correspondingHeaderOrSource(const QString &fileName, bool *wasHeader)
|
||||
currentProject);
|
||||
if (!path.isEmpty())
|
||||
return path;
|
||||
}
|
||||
|
||||
// Find files in other projects
|
||||
CppModelManager *modelManager = CppModelManager::instance();
|
||||
QList<CppModelManagerInterface::ProjectInfo> projectInfos = modelManager->projectInfos();
|
||||
foreach (const CppModelManagerInterface::ProjectInfo &projectInfo, projectInfos) {
|
||||
const ProjectExplorer::Project *project = projectInfo.project().data();
|
||||
if (project == currentProject)
|
||||
continue; // We have already checked the current project.
|
||||
} else {
|
||||
CppModelManager *modelManager = CppModelManager::instance();
|
||||
QList<CppModelManagerInterface::ProjectInfo> projectInfos = modelManager->projectInfos();
|
||||
foreach (const CppModelManagerInterface::ProjectInfo &projectInfo, projectInfos) {
|
||||
const ProjectExplorer::Project *project = projectInfo.project().data();
|
||||
if (project == currentProject)
|
||||
continue; // We have already checked the current project.
|
||||
|
||||
const QString path = correspondingHeaderOrSourceInProject(fi, candidateFileNames, project);
|
||||
if (!path.isEmpty())
|
||||
return path;
|
||||
const QString path = correspondingHeaderOrSourceInProject(fi, candidateFileNames, project);
|
||||
if (!path.isEmpty())
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
return QString();
|
||||
|
||||
Reference in New Issue
Block a user