forked from qt-creator/qt-creator
BaseQtVersion: Rename isInSourceDirectory to isSubProject and fix it
The source and examples directory is not a sub directory of the qt source directory in the sdks. But we still want to treat it as part of a the matching qt. Task-number: QTCREATORBUG-13469 Change-Id: Ib63722052a14c29e4198c879dd770fb4ecdcdb80 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -1628,7 +1628,7 @@ bool QmakeProject::matchesKit(const Kit *kit)
|
||||
QList<QtSupport::BaseQtVersion *> parentQts;
|
||||
Utils::FileName filePath = projectFilePath();
|
||||
foreach (QtSupport::BaseQtVersion *version, QtSupport::QtVersionManager::validVersions()) {
|
||||
if (version->isInSourceDirectory(filePath))
|
||||
if (version->isSubProject(filePath))
|
||||
parentQts.append(version);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user