Utils: Temporarily introdce Key Id::toKey()

To avoid complications on the user code side during the Key/Store
transition.

Change-Id: I49ae9d496c9c1ee07f17245616fdefefe9abfc2e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-08-28 18:19:24 +02:00
parent d304e82e63
commit aa7c817f7a
6 changed files with 32 additions and 24 deletions

View File

@@ -78,15 +78,15 @@ void TestProjectSettings::load()
m_activeTestFrameworks.clear();
m_activeTestTools.clear();
if (activeFrameworks.isValid()) {
const QMap<QString, QVariant> frameworksMap = activeFrameworks.toMap();
const Store frameworksMap = storeFromVariant(activeFrameworks);
for (ITestFramework *framework : registeredFrameworks) {
const Id id = framework->id();
bool active = frameworksMap.value(id.toString(), framework->active()).toBool();
bool active = frameworksMap.value(id.toKey(), framework->active()).toBool();
m_activeTestFrameworks.insert(framework, active);
}
for (ITestTool *testTool : registeredTestTools) {
const Id id = testTool->id();
bool active = frameworksMap.value(id.toString(), testTool->active()).toBool();
bool active = frameworksMap.value(id.toKey(), testTool->active()).toBool();
m_activeTestTools.insert(testTool, active);
}
} else {