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
QQmlContextPrivate Class Reference

#include <qqmlcontext_p.h>

+ Inheritance diagram for QQmlContextPrivate:
+ Collaboration diagram for QQmlContextPrivate:

Public Member Functions

void dropDestroyedQObject (const QString &name, QObject *destroyed)
 
int notifyIndex () const
 
void setNotifyIndex (int notifyIndex)
 
int numPropertyValues () const
 
void appendPropertyValue (const QVariant &value)
 
void setPropertyValue (int index, const QVariant &value)
 
QVariant propertyValue (int index) const
 
QList< QPointer< QObject > > instances () const
 
void appendInstance (QObject *instance)
 
void cleanInstances ()
 
void emitDestruction ()
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static QQmlContextPrivateget (QQmlContext *context)
 
static QQmlContextget (QQmlContextPrivate *context)
 
static qsizetype context_count (QQmlListProperty< QObject > *)
 
static QObjectcontext_at (QQmlListProperty< QObject > *, qsizetype)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Friends

class QQmlContextData
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Detailed Description

Definition at line 33 of file qqmlcontext_p.h.

Member Function Documentation

◆ appendInstance()

void QQmlContextPrivate::appendInstance ( QObject * instance)
inline

Definition at line 63 of file qqmlcontext_p.h.

References QList< T >::append().

+ Here is the call graph for this function:

◆ appendPropertyValue()

void QQmlContextPrivate::appendPropertyValue ( const QVariant & value)
inline

Definition at line 58 of file qqmlcontext_p.h.

References QList< T >::append().

+ Here is the call graph for this function:

◆ cleanInstances()

void QQmlContextPrivate::cleanInstances ( )
inline

Definition at line 64 of file qqmlcontext_p.h.

References QList< T >::begin(), QList< T >::end(), QList< T >::erase(), and it.

+ Here is the call graph for this function:

◆ context_at()

QObject * QQmlContextPrivate::context_at ( QQmlListProperty< QObject > * prop,
qsizetype index )
static

Definition at line 475 of file qqmlcontext.cpp.

References at, context, d, and get().

Referenced by searchContextProperties().

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

◆ context_count()

qsizetype QQmlContextPrivate::context_count ( QQmlListProperty< QObject > * prop)
static

Definition at line 463 of file qqmlcontext.cpp.

References context, d, and get().

Referenced by searchContextProperties().

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

◆ dropDestroyedQObject()

void QQmlContextPrivate::dropDestroyedQObject ( const QString & name,
QObject * destroyed )

Definition at line 487 of file qqmlcontext.cpp.

References QMetaObject::activate(), QQmlContextData::isValid(), notifyIndex(), QQmlContextData::propertyIndex(), propertyValue(), Q_ASSERT, and setPropertyValue().

+ Here is the call graph for this function:

◆ emitDestruction()

void QQmlContextPrivate::emitDestruction ( )

Definition at line 501 of file qqmlcontext.cpp.

References QQmlContextData::emitDestruction().

+ Here is the call graph for this function:

◆ get() [1/2]

static QQmlContextPrivate * QQmlContextPrivate::get ( QQmlContext * context)
inlinestatic

Definition at line 37 of file qqmlcontext_p.h.

References context, and QObjectPrivate::get().

Referenced by QQmlEngine::~QQmlEngine(), QQmlContextData::asQQmlContextPrivate(), context_at(), context_count(), QQmlContextData::findObjectId(), QQmlContextData::get(), and JavaScriptJob::run().

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

◆ get() [2/2]

static QQmlContext * QQmlContextPrivate::get ( QQmlContextPrivate * context)
inlinestatic

Definition at line 41 of file qqmlcontext_p.h.

References context.

◆ instances()

QList< QPointer< QObject > > QQmlContextPrivate::instances ( ) const
inline

Definition at line 62 of file qqmlcontext_p.h.

◆ notifyIndex()

int QQmlContextPrivate::notifyIndex ( ) const
inline

Definition at line 50 of file qqmlcontext_p.h.

Referenced by dropDestroyedQObject(), searchContextProperties(), and setNotifyIndex().

+ Here is the caller graph for this function:

◆ numPropertyValues()

int QQmlContextPrivate::numPropertyValues ( ) const
inline

Definition at line 53 of file qqmlcontext_p.h.

References Q_ASSERT, and QList< T >::size().

+ Here is the call graph for this function:

◆ propertyValue()

QVariant QQmlContextPrivate::propertyValue ( int index) const
inline

Definition at line 60 of file qqmlcontext_p.h.

Referenced by dropDestroyedQObject(), and searchContextProperties().

+ Here is the caller graph for this function:

◆ setNotifyIndex()

void QQmlContextPrivate::setNotifyIndex ( int notifyIndex)
inline

Definition at line 51 of file qqmlcontext_p.h.

References notifyIndex().

+ Here is the call graph for this function:

◆ setPropertyValue()

void QQmlContextPrivate::setPropertyValue ( int index,
const QVariant & value )
inline

Definition at line 59 of file qqmlcontext_p.h.

Referenced by dropDestroyedQObject().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QQmlContextData

friend class QQmlContextData
friend

Definition at line 73 of file qqmlcontext_p.h.


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