#include <settings.h>
|
| | AccountSettingsGroup (QObject *parent=nullptr) |
| |
| auto | asRange () const |
| |
| Q_INVOKABLE QStringList | accountNames () const |
| | Obtain the list of child groups from the current or, if missing, legacy settings.
|
| |
| | SettingsGroup (const QString &path, QObject *parent=nullptr) |
| |
| | Settings (QObject *parent=nullptr) |
| |
| Q_INVOKABLE void | setValue (const QString &key, const QVariant &value) |
| | Set the value for a given key.
|
| |
| Q_INVOKABLE void | remove (const QString &key) |
| | Remove the value from both the primary and legacy locations.
|
| |
| Q_INVOKABLE QVariant | value (const QString &key, const QVariant &defaultValue={}) const |
| | Obtain a value for a given key.
|
| |
| template<typename T > |
| T | get (const QString &key, const T &defaultValue={}) const |
| | Obtain a value for a given key, coerced to the given type.
|
| |
| Q_INVOKABLE bool | contains (const QString &key) const |
| |
| Q_INVOKABLE QStringList | childGroups () const |
| |
| Q_INVOKABLE QStringList | childGroups (bool decodeSlashes) const |
| |
|
| static auto | name () |
| |
| static void | setLegacyNames (const QString &organizationName, const QString &applicationName={}) |
| | Add a legacy organisation/application name to migrate settings from.
|
| |
| static QString | toEncoded (QString key) |
| | Escape forward- and backslashes in keys because QSettings doesn't (see #842)
|
| |
| static QString | fromEncoded (QString key) |
| | Unescape \ and / in keys stored with escapedForSettings()
|
| |
|
| QSettings | legacySettings { legacyOrganizationName, legacyApplicationName } |
| |
Definition at line 134 of file settings.h.
◆ AccountSettingsGroup()
| Quotient::AccountSettingsGroup::AccountSettingsGroup |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ accountNames()
| Q_INVOKABLE QStringList Quotient::AccountSettingsGroup::accountNames |
( |
| ) |
const |
Obtain the list of child groups from the current or, if missing, legacy settings.
- Note
- Slashes in account names will be automatically unescaped
- See also
- AccountSettings
◆ asRange()
| auto Quotient::AccountSettingsGroup::asRange |
( |
| ) |
const |
|
inline |
◆ name()
| static auto Quotient::AccountSettingsGroup::name |
( |
| ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: