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
This commit is contained in:
Tobias Hunger
2010-06-08 14:19:05 +02:00
parent 881d8ef6db
commit 1d8e176067
10 changed files with 41 additions and 21 deletions

View File

@@ -229,10 +229,16 @@ QVariantMap Project::toMap() const
QString Project::projectDirectory() const
{
QFileInfo info(file()->fileName());
return projectDirectory(file()->fileName());
}
QString Project::projectDirectory(const QString &proFile)
{
QFileInfo info(proFile);
return info.absoluteDir().path();
}
bool Project::fromMap(const QVariantMap &map)
{
if (map.contains(QLatin1String(EDITOR_SETTINGS_KEY))) {