forked from qt-creator/qt-creator
QtSupport: Use FilePaths in BaseQtVersion::isInSourceDirectory
... and isSubProject. Take the opportunity to rename them into isInQtSourceDirectory and a isQtSubProject to make its limited scope clearer. An open question is why this is only used for qmake projects. Change-Id: If36f9457583eac17e149624ec46e5de10dd4a5a5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -746,7 +746,7 @@ Tasks QmakeProject::projectIssues(const Kit *k) const
|
||||
// that is not the one from the current kit.
|
||||
const QList<BaseQtVersion *> qtsContainingThisProject
|
||||
= QtVersionManager::versions([filePath = projectFilePath()](const BaseQtVersion *qt) {
|
||||
return qt->isValid() && qt->isSubProject(filePath);
|
||||
return qt->isValid() && qt->isQtSubProject(filePath);
|
||||
});
|
||||
if (!qtsContainingThisProject.isEmpty()
|
||||
&& !qtsContainingThisProject.contains(const_cast<BaseQtVersion *>(qtFromKit))) {
|
||||
|
||||
Reference in New Issue
Block a user