Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
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
const 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.

◆ appendPropertyValue()

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

Definition at line 58 of file qqmlcontext_p.h.

◆ cleanInstances()

void QQmlContextPrivate::cleanInstances ( )
inline

Definition at line 64 of file qqmlcontext_p.h.

◆ context_at()

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

Definition at line 476 of file qqmlcontext.cpp.

◆ context_count()

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

Definition at line 464 of file qqmlcontext.cpp.

◆ dropDestroyedQObject()

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

Definition at line 488 of file qqmlcontext.cpp.

◆ emitDestruction()

void QQmlContextPrivate::emitDestruction ( )

Definition at line 502 of file qqmlcontext.cpp.

◆ get() [1/2]

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

Definition at line 37 of file qqmlcontext_p.h.

◆ get() [2/2]

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

Definition at line 41 of file qqmlcontext_p.h.

◆ 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.

◆ numPropertyValues()

int QQmlContextPrivate::numPropertyValues ( ) const
inline

Definition at line 53 of file qqmlcontext_p.h.

◆ propertyValue()

QVariant QQmlContextPrivate::propertyValue ( int index) const
inline

Definition at line 60 of file qqmlcontext_p.h.

◆ setNotifyIndex()

void QQmlContextPrivate::setNotifyIndex ( int notifyIndex)
inline

Definition at line 51 of file qqmlcontext_p.h.

◆ setPropertyValue()

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

Definition at line 59 of file qqmlcontext_p.h.

◆ 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: