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:
@@ -757,7 +757,7 @@ static BuildInfo createBuildInfo(const Kit *k, const FilePath &projectPath,
|
||||
// Leave info.buildDirectory unset;
|
||||
|
||||
// check if this project is in the source directory:
|
||||
if (version && version->isInSourceDirectory(projectPath)) {
|
||||
if (version && version->isInQtSourceDirectory(projectPath)) {
|
||||
// assemble build directory
|
||||
QString projectDirectory = projectPath.toFileInfo().absolutePath();
|
||||
QDir qtSourceDir = QDir(version->sourcePath().toString());
|
||||
|
||||
Reference in New Issue
Block a user