mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Merge pull request #15604 from ctrlaltdavid/M22527
Case 22527: Settings JSDoc
This commit is contained in:
commit
416e2799ad
1 changed files with 5 additions and 4 deletions
|
@ -16,7 +16,8 @@
|
|||
#include <QString>
|
||||
|
||||
/**jsdoc
|
||||
* The Settings API provides a facility to store and retrieve values that persist between Interface runs.
|
||||
* The <code>Settings</code> API provides a facility to store and retrieve values that persist between Interface runs.
|
||||
*
|
||||
* @namespace Settings
|
||||
*
|
||||
* @hifi-interface
|
||||
|
@ -33,7 +34,7 @@ public:
|
|||
public slots:
|
||||
|
||||
/**jsdoc
|
||||
* Retrieve the value from a named setting.
|
||||
* Retrieves the value from a named setting.
|
||||
* @function Settings.getValue
|
||||
* @param {string} key - The name of the setting.
|
||||
* @param {string|number|boolean|object} [defaultValue=""] - The value to return if the setting doesn't exist.
|
||||
|
@ -50,8 +51,8 @@ public slots:
|
|||
QVariant getValue(const QString& setting, const QVariant& defaultValue);
|
||||
|
||||
/**jsdoc
|
||||
* Store a value in a named setting. If the setting already exists its value is overwritten, otherwise a new setting is
|
||||
* created. If the value is set to <code>null</code> or <code>undefined</code>, the setting is deleted.
|
||||
* Stores a value in a named setting. If the setting already exists, its value is overwritten. If the value is
|
||||
* <code>null</code> or <code>undefined</code>, the setting is deleted.
|
||||
* @function Settings.setValue
|
||||
* @param {string} key - The name of the setting. Be sure to use a unique name if creating a new setting.
|
||||
* @param {string|number|boolean|object|undefined} value - The value to store in the setting. If <code>null</code> or
|
||||
|
|
Loading…
Reference in a new issue