Index: sources/model/settings/MSettings.cpp =================================================================== diff -u -ra5760947d3ed0d2748ba023a1c25e3c6aa0b1de1 -r53ec19e12772f2a73190323438106dc93e4a12df --- sources/model/settings/MSettings.cpp (.../MSettings.cpp) (revision a5760947d3ed0d2748ba023a1c25e3c6aa0b1de1) +++ sources/model/settings/MSettings.cpp (.../MSettings.cpp) (revision 53ec19e12772f2a73190323438106dc93e4a12df) @@ -142,6 +142,20 @@ } } +/*! + * \brief MSettings::remove + * \details The function to be used to remove elements in the settings + * \param vGroup - the group of the settings + * \param vKey - the key to be removed under the group vGroup + * \param vValue - the value of the key to be removed under group vGroup for the key vKey + */ +void MSettings::remove (const QString &vCategory, const QString &vGroup, const QString &vKey, const QVariant &vValue) +{ + TKeyValue keyValue (vKey, vValue); + int index = _settings[vCategory][vGroup].indexOf(keyValue); + _settings[vCategory][vGroup].removeAt(index); +} + QString MSettings::systemLocale () { return value(Storage::Settings_Category_Locale, "Localization", "Locale" ).toString(); } QString MSettings::systemLanguage () { return value(Storage::Settings_Category_Locale, "Localization", "Language" ).toString(); }