Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQmlSettingsPrivate Class Reference
+ Collaboration diagram for QQmlSettingsPrivate:

Public Member Functions

 QQmlSettingsPrivate ()=default
 
 ~QQmlSettingsPrivate ()=default
 
QSettingsinstance () const
 
void init ()
 
void reset ()
 
void load ()
 
void store ()
 
void _q_propertyChanged ()
 
QVariant readProperty (const QMetaProperty &property) const
 
 QQmlSettingsPrivate ()
 
QSettingsinstance () const
 
void init ()
 
void reset ()
 
void load ()
 
void store ()
 
void _q_propertyChanged ()
 
QVariant readProperty (const QMetaProperty &property) const
 

Public Attributes

QQmlSettingsq_ptr = nullptr
 
int timerId = 0
 
bool initialized = false
 
QString category = {}
 
QUrl location = {}
 
QPointer< QSettingssettings = nullptr
 
QHash< const char *, QVariantchangedProperties = {}
 
QString fileName
 

Detailed Description

Definition at line 207 of file qqmlsettings.cpp.

Constructor & Destructor Documentation

◆ QQmlSettingsPrivate() [1/2]

QQmlSettingsPrivate::QQmlSettingsPrivate ( )
default

Definition at line 235 of file qqmlsettings.cpp.

◆ ~QQmlSettingsPrivate()

QQmlSettingsPrivate::~QQmlSettingsPrivate ( )
default

◆ QQmlSettingsPrivate() [2/2]

QQmlSettingsPrivate::QQmlSettingsPrivate ( )

Member Function Documentation

◆ _q_propertyChanged() [1/2]

void QQmlSettingsPrivate::_q_propertyChanged ( )

Definition at line 342 of file qqmlsettings.cpp.

References changedProperties, i, QHash< Key, T >::insert(), mo, property, qCDebug, readProperty(), settingsWriteDelay, and timerId.

Referenced by load().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_propertyChanged() [2/2]

void QQmlSettingsPrivate::_q_propertyChanged ( )

◆ init() [1/2]

void QQmlSettingsPrivate::init ( )

Definition at line 276 of file qqmlsettings.cpp.

References QSettings::fileName(), initialized, instance(), load(), and qCDebug.

+ Here is the call graph for this function:

◆ init() [2/2]

void QQmlSettingsPrivate::init ( )

◆ instance() [1/2]

QSettings * QQmlSettingsPrivate::instance ( ) const

Definition at line 236 of file qqmlsettings.cpp.

References QSettings::AccessError, QCoreApplication::applicationName, QSettings::beginGroup(), category, QSettings::IniFormat, initialized, QString::isEmpty(), QQmlFile::isLocalFile(), QSettings::NoError, QCoreApplication::organizationDomain, QCoreApplication::organizationName, qmlWarning(), settings, QSettings::status(), and QQmlFile::urlToLocalFileOrQrc().

Referenced by init(), load(), and store().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ instance() [2/2]

QSettings * QQmlSettingsPrivate::instance ( ) const

◆ load() [1/2]

void QQmlSettingsPrivate::load ( )

Definition at line 292 of file qqmlsettings.cpp.

References _q_propertyChanged(), QMetaObject::connect(), contains(), currentValue, QString::fromUtf8(), i, initialized, instance(), mo, property, qCDebug, readProperty(), and QSettings::value().

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load() [2/2]

void QQmlSettingsPrivate::load ( )

◆ readProperty() [1/2]

QVariant QQmlSettingsPrivate::readProperty ( const QMetaProperty & property) const

Definition at line 359 of file qqmlsettings.cpp.

References QVariant::metaType(), toVariant(), QVariant::value(), and var.

Referenced by _q_propertyChanged(), and load().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readProperty() [2/2]

QVariant QQmlSettingsPrivate::readProperty ( const QMetaProperty & property) const

◆ reset() [1/2]

void QQmlSettingsPrivate::reset ( )

Definition at line 285 of file qqmlsettings.cpp.

References changedProperties, initialized, QHash< Key, T >::isEmpty(), settings, and store().

+ Here is the call graph for this function:

◆ reset() [2/2]

void QQmlSettingsPrivate::reset ( )

◆ store() [1/2]

void QQmlSettingsPrivate::store ( )

Definition at line 331 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ store() [2/2]

void QQmlSettingsPrivate::store ( )

Member Data Documentation

◆ category

QString QQmlSettingsPrivate::category = {}

Definition at line 230 of file qqmlsettings.cpp.

Referenced by instance().

◆ changedProperties

QHash< const char *, QVariant > QQmlSettingsPrivate::changedProperties = {}

Definition at line 233 of file qqmlsettings.cpp.

Referenced by _q_propertyChanged(), reset(), and store().

◆ fileName

QString QQmlSettingsPrivate::fileName

Definition at line 230 of file qqmlsettings.cpp.

◆ initialized

bool QQmlSettingsPrivate::initialized = false

Definition at line 229 of file qqmlsettings.cpp.

Referenced by init(), instance(), load(), and reset().

◆ location

QUrl QQmlSettingsPrivate::location = {}

Definition at line 231 of file qqmlsettings.cpp.

◆ q_ptr

QQmlSettings * QQmlSettingsPrivate::q_ptr = nullptr

Definition at line 227 of file qqmlsettings.cpp.

◆ settings

QPointer< QSettings > QQmlSettingsPrivate::settings = nullptr
mutable

Definition at line 232 of file qqmlsettings.cpp.

Referenced by instance(), and reset().

◆ timerId

int QQmlSettingsPrivate::timerId = 0

Definition at line 228 of file qqmlsettings.cpp.

Referenced by _q_propertyChanged().


The documentation for this class was generated from the following files: