Refs T159 Context method to get unsaved settings keys with their human readable descriptions.

This commit is contained in:
Mathew Sutcliffe
2017-09-24 18:59:33 +01:00
parent 91f6652072
commit efe5419e9a
7 changed files with 37 additions and 0 deletions

View File

@@ -92,6 +92,15 @@ namespace BlackCore
return CSettingsCache::instance()->getAllUnsavedKeys();
}
CSettingsDictionary CContextApplication::getUnsavedSettingsKeysDescribed() const
{
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
const QStringList keys = CSettingsCache::instance()->getAllUnsavedKeys();
CSettingsDictionary result;
for (const QString &key : keys) { result.insert(key, CSettingsCache::instance()->getHumanReadableName(key)); }
return result;
}
void CContextApplication::synchronizeLocalSettings()
{
// no-op: proxy implements this method by calling getAllSettings