summaryrefslogtreecommitdiffstats
path: root/libsettings/src/inisettingsobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsettings/src/inisettingsobject.cpp')
-rw-r--r--libsettings/src/inisettingsobject.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/libsettings/src/inisettingsobject.cpp b/libsettings/src/inisettingsobject.cpp
index 17b132a3..854421b6 100644
--- a/libsettings/src/inisettingsobject.cpp
+++ b/libsettings/src/inisettingsobject.cpp
@@ -40,6 +40,15 @@ void INISettingsObject::changeSetting(const Setting &setting, QVariant value)
}
}
+void INISettingsObject::resetSetting ( const Setting& setting )
+{
+ if (contains(setting.id()))
+ {
+ m_ini.remove(setting.configKey());
+ m_ini.saveFile(m_filePath);
+ }
+}
+
QVariant INISettingsObject::retrieveValue(const Setting &setting)
{
if (contains(setting.id()))