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

#include <qqmlinstantiator_p_p.h>

+ Inheritance diagram for QQmlInstantiatorPrivate:
+ Collaboration diagram for QQmlInstantiatorPrivate:

Public Member Functions

 QQmlInstantiatorPrivate ()
 
void clear ()
 
void regenerate ()
 
void _q_createdItem (int, QObject *)
 
void _q_modelUpdated (const QQmlChangeSet &, bool)
 
QObjectmodelObject (int index, bool async)
 
- 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 QQmlInstantiatorPrivateget (QQmlInstantiator *instantiator)
 
static const QQmlInstantiatorPrivateget (const QQmlInstantiator *instantiator)
 
- 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)
 

Public Attributes

bool componentComplete:1
 
bool effectiveReset:1
 
bool active:1
 
bool async:1
 
int requestedIndex
 
QVariant model
 
QQmlInstanceModelinstanceModel
 
QQmlComponentdelegate
 
QVector< QPointer< QObject > > objects
 
- 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
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Detailed Description

Definition at line 30 of file qqmlinstantiator_p_p.h.

Constructor & Destructor Documentation

◆ QQmlInstantiatorPrivate()

QT_BEGIN_NAMESPACE QQmlInstantiatorPrivate::QQmlInstantiatorPrivate ( )

Definition at line 17 of file qqmlinstantiator.cpp.

Member Function Documentation

◆ _q_createdItem()

void QQmlInstantiatorPrivate::_q_createdItem ( int idx,
QObject * item )

Definition at line 88 of file qqmlinstantiator.cpp.

References QQmlInstanceModel::count, instanceModel, item, o, QQmlInstanceModel::object, objects, QQmlInstanceModel::release(), requestedIndex, and void.

Referenced by _q_modelUpdated(), and regenerate().

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

◆ _q_modelUpdated()

void QQmlInstantiatorPrivate::_q_modelUpdated ( const QQmlChangeSet & changeSet,
bool reset )

Definition at line 111 of file qqmlinstantiator.cpp.

References _q_createdItem(), active, async, componentComplete, QQmlChangeSet::difference(), effectiveReset, i, insert(), QQmlChangeSet::inserts(), instanceModel, modelObject(), objects, qMin(), regenerate(), QQmlInstanceModel::release(), remove(), and QQmlChangeSet::removes().

+ Here is the call graph for this function:

◆ clear()

void QQmlInstantiatorPrivate::clear ( )

Definition at line 32 of file qqmlinstantiator.cpp.

References emit, i, instanceModel, objects, and QQmlInstanceModel::release().

Referenced by regenerate().

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

◆ get() [1/2]

static const QQmlInstantiatorPrivate * QQmlInstantiatorPrivate::get ( const QQmlInstantiator * instantiator)
inlinestatic

Definition at line 47 of file qqmlinstantiator_p_p.h.

◆ get() [2/2]

static QQmlInstantiatorPrivate * QQmlInstantiatorPrivate::get ( QQmlInstantiator * instantiator)
inlinestatic

Definition at line 46 of file qqmlinstantiator_p_p.h.

◆ modelObject()

QObject * QQmlInstantiatorPrivate::modelObject ( int index,
bool async )

Definition at line 53 of file qqmlinstantiator.cpp.

References async, QQmlIncubator::Asynchronous, QQmlIncubator::AsynchronousIfNested, instanceModel, o, QQmlInstanceModel::object, and requestedIndex.

Referenced by _q_modelUpdated(), and regenerate().

+ Here is the caller graph for this function:

◆ regenerate()

void QQmlInstantiatorPrivate::regenerate ( )

Definition at line 62 of file qqmlinstantiator.cpp.

References _q_createdItem(), active, async, clear(), componentComplete, QQmlInstanceModel::count, i, instanceModel, QQmlInstanceModel::isValid(), and modelObject().

Referenced by _q_modelUpdated().

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

Member Data Documentation

◆ active

bool QQmlInstantiatorPrivate::active

Definition at line 51 of file qqmlinstantiator_p_p.h.

Referenced by _q_modelUpdated(), and regenerate().

◆ async

bool QQmlInstantiatorPrivate::async

Definition at line 52 of file qqmlinstantiator_p_p.h.

Referenced by _q_modelUpdated(), modelObject(), and regenerate().

◆ componentComplete

bool QQmlInstantiatorPrivate::componentComplete

Definition at line 49 of file qqmlinstantiator_p_p.h.

Referenced by _q_modelUpdated(), and regenerate().

◆ delegate

QQmlComponent* QQmlInstantiatorPrivate::delegate

Definition at line 59 of file qqmlinstantiator_p_p.h.

◆ effectiveReset

bool QQmlInstantiatorPrivate::effectiveReset

Definition at line 50 of file qqmlinstantiator_p_p.h.

Referenced by _q_modelUpdated().

◆ instanceModel

QQmlInstanceModel* QQmlInstantiatorPrivate::instanceModel

◆ model

QVariant QQmlInstantiatorPrivate::model

Definition at line 57 of file qqmlinstantiator_p_p.h.

◆ objects

QVector<QPointer<QObject> > QQmlInstantiatorPrivate::objects

Definition at line 60 of file qqmlinstantiator_p_p.h.

Referenced by _q_createdItem(), _q_modelUpdated(), and clear().

◆ requestedIndex

int QQmlInstantiatorPrivate::requestedIndex

Definition at line 56 of file qqmlinstantiator_p_p.h.

Referenced by _q_createdItem(), and modelObject().


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