Fix targetsetuppage's shadowbuild dirs

* Fix displayed shadow build location
 * Fix shadow build location used by newly set up shadow builds

Task-number: QTCREATORBUG-1599
Reviewed-by: dt
(cherry picked from commit 1d8e176067)
This commit is contained in:
Tobias Hunger
2010-06-08 14:19:05 +02:00
committed by con
parent 190fdf360c
commit b099596858
10 changed files with 41 additions and 21 deletions

View File

@@ -780,8 +780,13 @@ bool Qt4Project::wasEvaluateCanceled()
QString Qt4Project::defaultTopLevelBuildDirectory() const
{
QFileInfo info(file()->fileName());
return QDir(projectDirectory() + QLatin1String("/../") + info.baseName() + QLatin1String("-build")).absolutePath();
return defaultTopLevelBuildDirectory(file()->fileName());
}
QString Qt4Project::defaultTopLevelBuildDirectory(const QString &profilePath)
{
QFileInfo info(profilePath);
return QDir(projectDirectory(profilePath) + QLatin1String("/../") + info.baseName() + QLatin1String("-build")).absolutePath();
}
void Qt4Project::asyncUpdate()