#include <settings.h>
|
| SettingsGroup (QString path, QObject *parent=nullptr) |
|
Q_INVOKABLE bool | contains (const QString &key) const |
|
Q_INVOKABLE QVariant | value (const QString &key, const QVariant &defaultValue={}) const |
|
template<typename T > |
T | get (const QString &key, const T &defaultValue={}) const |
|
Q_INVOKABLE QString | group () const |
|
Q_INVOKABLE QStringList | childGroups () const |
|
Q_INVOKABLE void | setValue (const QString &key, const QVariant &value) |
|
Q_INVOKABLE void | remove (const QString &key) |
|
| Settings (QObject *parent=nullptr) |
|
Q_INVOKABLE void | setValue (const QString &key, const QVariant &value) |
| Set the value for a given key. More...
|
|
Q_INVOKABLE void | remove (const QString &key) |
| Remove the value from both the primary and legacy locations. More...
|
|
Q_INVOKABLE QVariant | value (const QString &key, const QVariant &defaultValue={}) const |
| Obtain a value for a given key. More...
|
|
template<typename T > |
T | get (const QString &key, const T &defaultValue={}) const |
| Obtain a value for a given key, coerced to the given type. More...
|
|
Q_INVOKABLE bool | contains (const QString &key) const |
|
Q_INVOKABLE QStringList | childGroups () const |
|
|
static void | setLegacyNames (const QString &organizationName, const QString &applicationName={}) |
| Add a legacy organisation/application name to migrate settings from. More...
|
|
QSettings | legacySettings { legacyOrganizationName, legacyApplicationName } |
|
Definition at line 80 of file settings.h.
◆ SettingsGroup()
Quotient::SettingsGroup::SettingsGroup |
( |
QString |
path, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
inlineexplicit |
◆ childGroups()
Q_INVOKABLE QStringList Quotient::SettingsGroup::childGroups |
( |
| ) |
const |
◆ contains()
Q_INVOKABLE bool Quotient::SettingsGroup::contains |
( |
const QString & |
key | ) |
const |
◆ get()
template<typename T >
T Quotient::SettingsGroup::get |
( |
const QString & |
key, |
|
|
const T & |
defaultValue = {} |
|
) |
| const |
|
inline |
◆ group()
Q_INVOKABLE QString Quotient::SettingsGroup::group |
( |
| ) |
const |
◆ remove()
Q_INVOKABLE void Quotient::SettingsGroup::remove |
( |
const QString & |
key | ) |
|
◆ setValue()
Q_INVOKABLE void Quotient::SettingsGroup::setValue |
( |
const QString & |
key, |
|
|
const QVariant & |
value |
|
) |
| |
◆ value()
Q_INVOKABLE QVariant Quotient::SettingsGroup::value |
( |
const QString & |
key, |
|
|
const QVariant & |
defaultValue = {} |
|
) |
| const |
The documentation for this class was generated from the following file: