forked from qt-creator/qt-creator
Move "builddirectory" template from Core to ProjectExplorer
Move Core::DocumentManager::buildDirectory to ProjectExplorerPlugin::buildDirectoryTemplate. Move the setter along. Change-Id: I3f1739723e800d04d2934149369b8881208305b4 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -66,7 +66,7 @@ static FileName defaultBuildDirectory(const QString &projectFilePath, const Kit
|
||||
const QString projectName = QFileInfo(projectFilePath).completeBaseName();
|
||||
ProjectMacroExpander expander(projectFilePath, projectName, k, bcName, buildType);
|
||||
QString projectDir = Project::projectDirectory(FileName::fromString(projectFilePath)).toString();
|
||||
QString buildPath = expander.expand(Core::DocumentManager::buildDirectory());
|
||||
QString buildPath = expander.expand(ProjectExplorerPlugin::defaultBuildDirectory());
|
||||
return FileName::fromString(FileUtils::resolvePath(projectDir, buildPath));
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ static QString buildDir(const QString &projectFilePath, const Kit *k)
|
||||
BuildConfiguration::Unknown);
|
||||
const QString projectDir
|
||||
= Project::projectDirectory(FileName::fromString(projectFilePath)).toString();
|
||||
const QString buildPath = expander.expand(Core::DocumentManager::buildDirectory());
|
||||
const QString buildPath = expander.expand(ProjectExplorerPlugin::defaultBuildDirectory());
|
||||
return FileUtils::resolvePath(projectDir, buildPath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user