Nemo QML Plugin Configuration
API DocumentationConfigurationValue QML Type
Provides access to a single configuration value More...
Import Statement: | import Nemo.Configuration 1.0 |
Properties
- defaultValue : variant
- key : string
- value : variant
Methods
- void sync()
Detailed Description
ConfigurationValue provides access to a single DConf key. The DConf key value is accessible via the value property.
Type conversion
Values are automatically converted between QML/JS and DConf values as needed.
QML/JS type | DConf type | Notes |
---|---|---|
undefined | An undefined value denotes an unset DConf key. | |
double | double | |
int | integer | |
bool | boolean | |
string | string | DConf strings are always UTF-8 encoded. |
list<string> | list of strings | |
list<variant> | list of variants | DConf requires that all elements of a list have the same type. If the variant type is string a list<string> will be returned instead of list<variant>. |
Unsupported types, which cannot be converted to a supported type, are ignored.
Property Documentation
This property holds the key that this ConfigurationValue represents.
This property holds the configuration value represented by key.