mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Settings, added TSettingTrait::humanReadable and used copydoc, T159 related
This commit is contained in:
committed by
Mathew Sutcliffe
parent
88a1c9f5d4
commit
7cdfe8c914
@@ -92,10 +92,13 @@ namespace BlackMisc
|
||||
//! Trait for swift plugin settings
|
||||
struct TSwiftPlugin : public BlackMisc::TSettingTrait<CSwiftPluginSettings>
|
||||
{
|
||||
//! Key in data cache
|
||||
//! \copydoc BlackCore::TSettingTrait::key
|
||||
static const char *key() { return "settingsswiftplugin"; }
|
||||
|
||||
//! Validator function.
|
||||
//! \copydoc BlackCore::TSettingTrait::humanReadable
|
||||
static const QString &humanReadable() { static const QString name("swift plugin"); return name; }
|
||||
|
||||
//! \copydoc BlackCore::TSettingTrait::isValid
|
||||
static bool isValid(const CSwiftPluginSettings &value) { return value.getEmulatedSimulator().isSingleSimulator(); }
|
||||
};
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user