mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Utility function "isDefault" in settings cache
This commit is contained in:
@@ -99,7 +99,10 @@ namespace BlackMisc
|
||||
CStatusMessage setDefault() { return this->set(Trait::defaultValue()); }
|
||||
|
||||
//! Gets the default value
|
||||
auto getDefault() { return Trait::defaultValue(); }
|
||||
auto getDefault() const { return Trait::defaultValue(); }
|
||||
|
||||
//! Is default value?
|
||||
bool isDefault() const { return this->getDefault() == this->get(); }
|
||||
|
||||
//! 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