Utils: Pimpl BaseAspect

Change-Id: I70a7d49010c24a44dc64d20c5548c249964b78bd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2020-12-17 15:43:10 +01:00
parent 74b773e68f
commit 0edebcfa9c
4 changed files with 66 additions and 25 deletions

View File

@@ -124,14 +124,14 @@ void GlobalOrProjectAspect::fromMap(const QVariantMap &map)
{
if (m_projectSettings)
m_projectSettings->fromMap(map);
m_useGlobalSettings = map.value(m_id.toString() + QLatin1String(".UseGlobalSettings"), true).toBool();
m_useGlobalSettings = map.value(id().toString() + ".UseGlobalSettings", true).toBool();
}
void GlobalOrProjectAspect::toMap(QVariantMap &map) const
{
if (m_projectSettings)
m_projectSettings->toMap(map);
map.insert(m_id.toString() + QLatin1String(".UseGlobalSettings"), m_useGlobalSettings);
map.insert(id().toString() + ".UseGlobalSettings", m_useGlobalSettings);
}
void GlobalOrProjectAspect::resetProjectToGlobalSettings()