Add method to get default value from a Setting

This commit is contained in:
Roland Winklmeier
2018-07-30 10:54:49 +02:00
committed by Klaus Basan
parent 4d9141fd50
commit 2765de2b93

View File

@@ -99,6 +99,9 @@ namespace BlackMisc
//! Reset the setting to its default value.
CStatusMessage setDefault() { return this->set(Trait::defaultValue()); }
//! Gets the default value
auto getDefault() { return Trait::defaultValue(); }
//! Return the file that is used for persistence for this value.
QString getFilename() const { return CSettingsCache::filenameForKey(this->getKey()); }
};