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

Allow access to complete map of values in PersistentSettingsReader

Reviewed-by: dt
parent 8e82a86e
...@@ -52,6 +52,11 @@ QVariant PersistentSettingsReader::restoreValue(const QString & variable) const ...@@ -52,6 +52,11 @@ QVariant PersistentSettingsReader::restoreValue(const QString & variable) const
return QVariant(); return QVariant();
} }
QVariantMap PersistentSettingsReader::restoreValues() const
{
return m_valueMap;
}
bool PersistentSettingsReader::load(const QString & fileName) bool PersistentSettingsReader::load(const QString & fileName)
{ {
m_valueMap.clear(); m_valueMap.clear();
......
...@@ -46,6 +46,7 @@ class PROJECTEXPLORER_EXPORT PersistentSettingsReader ...@@ -46,6 +46,7 @@ class PROJECTEXPLORER_EXPORT PersistentSettingsReader
public: public:
PersistentSettingsReader(); PersistentSettingsReader();
QVariant restoreValue(const QString & variable) const; QVariant restoreValue(const QString & variable) const;
QVariantMap restoreValues() const;
bool load(const QString & fileName); bool load(const QString & fileName);
void setPrefix(const QString &prefix); void setPrefix(const QString &prefix);
QString prefix() const; QString prefix() const;
......
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