Use Core::Id in project-related objects

Use Core::Id for all the project related objects in favor of plain
QStrings.

Change-Id: I790ab40cb29899efdb49c413a77609486f52e683
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Tobias Hunger
2012-03-15 17:17:40 +01:00
parent cf26765c62
commit df5dab6382
217 changed files with 1379 additions and 1357 deletions

View File

@@ -415,9 +415,9 @@ QString GenericProject::displayName() const
return m_projectName;
}
QString GenericProject::id() const
Core::Id GenericProject::id() const
{
return QLatin1String(Constants::GENERICPROJECT_ID);
return Core::Id(Constants::GENERICPROJECT_ID);
}
Core::IDocument *GenericProject::document() const
@@ -484,7 +484,7 @@ bool GenericProject::fromMap(const QVariantMap &map)
if (targets().isEmpty()) {
GenericTargetFactory *factory =
ExtensionSystem::PluginManager::instance()->getObject<GenericTargetFactory>();
addTarget(factory->create(this, QLatin1String(GENERIC_DESKTOP_TARGET_ID)));
addTarget(factory->create(this, Core::Id(GENERIC_DESKTOP_TARGET_ID)));
}
QString id = map.value(QLatin1String(TOOLCHAIN_KEY)).toString();