mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Add method to get default value from a Setting
This commit is contained in:
committed by
Klaus Basan
parent
4d9141fd50
commit
2765de2b93
@@ -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()); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user