diff --git a/src/blackmisc/settingscache.h b/src/blackmisc/settingscache.h index fa51585fb..d5523fa14 100644 --- a/src/blackmisc/settingscache.h +++ b/src/blackmisc/settingscache.h @@ -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()); } };