Commit d35e3aa0 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

ToolChain: Extract more information from map data

... of a stored tool chain. This is necessary to upgrade toolchains
to 2.6 file format smoothly.

Change-Id: I401a18924360fdf2d2797bebd9a0dcc059e80518
Reviewed-by: default avatarDaniel Teske <>
parent 7315f6cd
......@@ -243,4 +243,14 @@ QString ToolChainFactory::idFromMap(const QVariantMap &data)
return data.value(QLatin1String(ID_KEY)).toString();
void ToolChainFactory::idToMap(QVariantMap &data, const QString id)
data.insert(QLatin1String(ID_KEY), id);
void ToolChainFactory::autoDetectionToMap(QVariantMap &data, bool detected)
data.insert(QLatin1String(AUTODETECT_KEY), detected);
} // namespace ProjectExplorer
......@@ -143,6 +143,8 @@ public:
virtual ToolChain *restore(const QVariantMap &data);
static QString idFromMap(const QVariantMap &data);
static void idToMap(QVariantMap &data, const QString id);
static void autoDetectionToMap(QVariantMap &data, bool detected);
} // namespace ProjectExplorer
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment