![]() |
Falkon Develop
Cross-platform Qt-based web browser
|
The class exposing Settings API to QML. More...
#include <qmlsettings.h>
Public Member Functions | |
| QmlSettings (QObject *parent=nullptr) | |
| Q_INVOKABLE bool | setValue (const QVariantMap &map) |
| Sets the value for a given key. More... | |
| Q_INVOKABLE QVariant | value (const QVariantMap &map) |
| Gets the value for a given key. More... | |
| Q_INVOKABLE bool | contains (const QString &key) |
| Checks if a given key exists. More... | |
| Q_INVOKABLE bool | remove (const QString &key) |
| Removes the given key-value from the settings. More... | |
| Q_INVOKABLE bool | sync () |
| syncs the settings More... | |
Properties | |
| QString | name |
| name of the folder in which settings.ini file is located on the standard extension path. More... | |
The class exposing Settings API to QML.
Definition at line 26 of file qmlsettings.h.
|
explicit |
Definition at line 22 of file qmlsettings.cpp.
| bool QmlSettings::contains | ( | const QString & | key | ) |
Checks if a given key exists.
| QString | representing the key |
Definition at line 60 of file qmlsettings.cpp.
| bool QmlSettings::remove | ( | const QString & | key | ) |
Removes the given key-value from the settings.
| QString | representing the key |
Definition at line 69 of file qmlsettings.cpp.
| bool QmlSettings::setValue | ( | const QVariantMap & | map | ) |
Sets the value for a given key.
| A | JavaScript object containing
|
Definition at line 28 of file qmlsettings.cpp.
| bool QmlSettings::sync | ( | ) |
syncs the settings
Definition at line 79 of file qmlsettings.cpp.
| QVariant QmlSettings::value | ( | const QVariantMap & | map | ) |
Gets the value for a given key.
| A | JavaScript object containing
|
Definition at line 44 of file qmlsettings.cpp.
|
readwrite |
name of the folder in which settings.ini file is located on the standard extension path.
Definition at line 1 of file qmlsettings.h.