Represents app settings. More...
Import Statement: | import Esri.ArcGISExtras 1.1 |
Since: | Esri.ArcGISExtras 1.0 |
Properties
- fallbacksEnabled : bool
- path : string
Signals
Methods
- bool boolValue(string key, bool defaultValue)
- color colorValue(string key, color defaultValue)
- bool contains(string key)
- real numberValue(string key, real defaultValue)
- void remove(string key)
- void setColorValue(string key, color value)
- void setValue(string key, jsobject value, jsobject defaultValue)
- void synchronize()
- jsobject value(string key, jsobject defaultValue)
Detailed Description
Settings is a wrapper for the Qt QSettings class, sharing many of its properties and methods.
Property Documentation
Signal Documentation
Method Documentation
Returns the bool value for the setting identified by key.
If the setting doesn't exist, returns defaultValue, which is false
if not specified.
Returns the color value for the setting identified by key.
If the setting doesn't exist, returns defaultValue.
See also setColorValue().
Returns the numeric value for the setting identified by key.
If the setting doesn't exist, returns defaultValue, which is 0
if not specified.
void setColorValue(string key, color value) |
Set the setting identified by key to a color value.
If the key already exists, the previous value is overwritten.
See also colorValue().
Sets the value of setting key to value.
If the key already exists, the previous value is overwritten.
Note: If defaultValue is equal to value then key is removed from settings.
See also value().
Writes any unsaved changes to permanent storage, and reloads any settings that have been changed in the meantime by another application.
Returns the value for the setting identified by key.
If the setting doesn't exist, returns defaultValue.
See also setValue().