![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
QQmlSettingsPrivate ()=default | |
~QQmlSettingsPrivate ()=default | |
QSettings * | instance () const |
void | init () |
void | reset () |
void | load () |
void | store () |
void | _q_propertyChanged () |
QVariant | readProperty (const QMetaProperty &property) const |
QQmlSettingsPrivate () | |
QSettings * | instance () const |
void | init () |
void | reset () |
void | load () |
void | store () |
void | _q_propertyChanged () |
QVariant | readProperty (const QMetaProperty &property) const |
Public Attributes | |
QQmlSettings * | q_ptr = nullptr |
int | timerId = 0 |
bool | initialized = false |
QString | category = {} |
QUrl | location = {} |
QPointer< QSettings > | settings = nullptr |
QHash< const char *, QVariant > | changedProperties = {} |
QString | fileName |
Definition at line 204 of file qqmlsettings.cpp.
|
default |
Definition at line 235 of file qqmlsettings.cpp.
|
default |
QQmlSettingsPrivate::QQmlSettingsPrivate | ( | ) |
void QQmlSettingsPrivate::_q_propertyChanged | ( | ) |
Definition at line 337 of file qqmlsettings.cpp.
References changedProperties, i, QHash< Key, T >::insert(), mo, property, qCDebug, readProperty(), settingsWriteDelay, and timerId.
Referenced by load().
void QQmlSettingsPrivate::_q_propertyChanged | ( | ) |
void QQmlSettingsPrivate::init | ( | ) |
Definition at line 271 of file qqmlsettings.cpp.
References QSettings::fileName(), initialized, instance(), load(), and qCDebug.
void QQmlSettingsPrivate::init | ( | ) |
QSettings * QQmlSettingsPrivate::instance | ( | ) | const |
Definition at line 233 of file qqmlsettings.cpp.
References QSettings::AccessError, QCoreApplication::applicationName, QSettings::beginGroup(), category, QSettings::IniFormat, initialized, QString::isEmpty(), QSettings::NoError, QCoreApplication::organizationDomain, QCoreApplication::organizationName, qmlWarning(), settings, and QSettings::status().
Referenced by init(), load(), and store().
QSettings * QQmlSettingsPrivate::instance | ( | ) | const |
void QQmlSettingsPrivate::load | ( | ) |
Definition at line 287 of file qqmlsettings.cpp.
References _q_propertyChanged(), QMetaObject::connect(), contains(), currentValue, QString::fromUtf8(), i, initialized, instance(), QVariant::isValid(), QVariant::metaType(), mo, property, qCDebug, readProperty(), and QSettings::value().
Referenced by init().
void QQmlSettingsPrivate::load | ( | ) |
QVariant QQmlSettingsPrivate::readProperty | ( | const QMetaProperty & | property | ) | const |
Definition at line 354 of file qqmlsettings.cpp.
References QVariant::metaType(), toVariant(), QVariant::value(), and var.
Referenced by _q_propertyChanged(), and load().
QVariant QQmlSettingsPrivate::readProperty | ( | const QMetaProperty & | property | ) | const |
void QQmlSettingsPrivate::reset | ( | ) |
Definition at line 280 of file qqmlsettings.cpp.
References changedProperties, initialized, QHash< Key, T >::isEmpty(), settings, and store().
void QQmlSettingsPrivate::reset | ( | ) |
void QQmlSettingsPrivate::store | ( | ) |
Definition at line 326 of file qqmlsettings.cpp.
References changedProperties, QHash< Key, T >::clear(), QHash< Key, T >::constBegin(), QHash< Key, T >::constEnd(), QString::fromUtf8(), instance(), it, qCDebug, and QSettings::setValue().
Referenced by reset().
void QQmlSettingsPrivate::store | ( | ) |
QString QQmlSettingsPrivate::category = {} |
Definition at line 227 of file qqmlsettings.cpp.
Referenced by instance().
Definition at line 230 of file qqmlsettings.cpp.
Referenced by _q_propertyChanged(), reset(), and store().
QString QQmlSettingsPrivate::fileName |
Definition at line 230 of file qqmlsettings.cpp.
bool QQmlSettingsPrivate::initialized = false |
Definition at line 226 of file qqmlsettings.cpp.
Referenced by init(), instance(), load(), and reset().
QUrl QQmlSettingsPrivate::location = {} |
Definition at line 228 of file qqmlsettings.cpp.
QQmlSettings * QQmlSettingsPrivate::q_ptr = nullptr |
Definition at line 224 of file qqmlsettings.cpp.
Definition at line 229 of file qqmlsettings.cpp.
Referenced by instance(), and reset().
int QQmlSettingsPrivate::timerId = 0 |
Definition at line 225 of file qqmlsettings.cpp.
Referenced by _q_propertyChanged().