Utils/ProjectExplorer: More Key and Store

Change-Id: Ic9cc3a36b320c7413c362d1a1cdf024298d25027
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-08-24 16:14:26 +02:00
parent 648efd6524
commit b9f9d2574e
18 changed files with 130 additions and 126 deletions

View File

@@ -349,7 +349,7 @@ void ProjectManagerPrivate::saveSession()
depMap.insert(key, values);
++i;
}
SessionManager::setSessionValue(QLatin1String("ProjectDependencies"), QVariant(depMap));
SessionManager::setSessionValue("ProjectDependencies", QVariant(depMap));
}
/*!
@@ -654,7 +654,7 @@ void ProjectManagerPrivate::loadSession()
d->m_casadeSetActive = false;
// not ideal that this is in ProjectManager
Id modeId = Id::fromSetting(SessionManager::value(QLatin1String("ActiveMode")));
Id modeId = Id::fromSetting(SessionManager::value("ActiveMode"));
if (!modeId.isValid())
modeId = Id(Core::Constants::MODE_EDIT);
@@ -705,8 +705,7 @@ FilePaths ProjectManager::projectsForSessionName(const QString &session)
return {};
}
}
return transform(reader.restoreValue(QLatin1String("ProjectList")).toStringList(),
&FilePath::fromUserInput);
return transform(reader.restoreValue("ProjectList").toStringList(), &FilePath::fromUserInput);
}
#ifdef WITH_TESTS