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
QQmlBindPrivate Class Reference
+ Inheritance diagram for QQmlBindPrivate:
+ Collaboration diagram for QQmlBindPrivate:

Public Member Functions

 QQmlBindPrivate ()
 
 ~QQmlBindPrivate ()
 
QQmlBindEntrytargetEntry ()
 
void validate (QQmlBind *binding) const
 
void decodeBinding (QQmlBind *q, const QString &propertyPrefix, QQmlData::DeferredData *deferredData, const QV4::CompiledData::Binding *binding, QQmlComponentPrivate::ConstructionState *immediateState)
 
void createDelayedValues ()
 
void onDelayedValueChanged (QString delayedName)
 
void evalDelayed ()
 
void buildBindEntries (QQmlBind *q, QQmlComponentPrivate::DeferredState *deferredState)
 
- 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
 

Public Attributes

QVarLengthArray< QQmlBindEntry, 1 > entries
 
QPointer< QObjectobj
 
std::unique_ptr< QQmlPropertyMapdelayedValues
 
QString propName
 
bool when: 1
 
bool componentComplete:1
 
bool delayed:1
 
bool pendingEval:1
 
bool restoreBinding:1
 
bool restoreValue:1
 
bool writingProperty:1
 
bool lastIsTarget:1
 
- 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>
 
- 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)
 

Detailed Description

Definition at line 209 of file qqmlbind.cpp.

Constructor & Destructor Documentation

◆ QQmlBindPrivate()

QQmlBindPrivate::QQmlBindPrivate ( )
inline

Definition at line 212 of file qqmlbind.cpp.

◆ ~QQmlBindPrivate()

QQmlBindPrivate::~QQmlBindPrivate ( )
inline

Definition at line 223 of file qqmlbind.cpp.

Member Function Documentation

◆ buildBindEntries()

void QQmlBindPrivate::buildBindEntries ( QQmlBind * q,
QQmlComponentPrivate::DeferredState * deferredState )

Definition at line 943 of file qqmlbind.cpp.

References QQmlComponentPrivate::completeDeferred(), decodeBinding(), QQmlData::get(), QQmlEnginePrivate::get(), QQmlEnginePrivate::inProgressCreations, and it.

+ Here is the call graph for this function:

◆ createDelayedValues()

void QQmlBindPrivate::createDelayedValues ( )

Definition at line 899 of file qqmlbind.cpp.

References QObject::connect(), delayedValues, and QQmlPropertyMap::valueChanged().

Referenced by decodeBinding().

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

◆ decodeBinding()

void QQmlBindPrivate::decodeBinding ( QQmlBind * q,
const QString & propertyPrefix,
QQmlData::DeferredData * deferredData,
const QV4::CompiledData::Binding * binding,
QQmlComponentPrivate::ConstructionState * immediateState )

Definition at line 755 of file qqmlbind.cpp.

References QQmlPropertyPrivate::AllowId, QQmlPropertyPrivate::AllowSignal, QVarLengthArray< T, Prealloc >::append(), attachedObject(), QQmlType::attachedPropertiesFunction(), QQmlData::DeferredData::compilationUnit, QQmlData::DeferredData::context, context, QQmlPropertyPrivate::create(), createBinding(), createDelayedValues(), decodeBinding(), QQmlData::DeferredData::deferredIdx, delayed, delayedValues, entries, QVariant::fromValue(), QQmlContextData::get(), QQmlEnginePrivate::get(), i, QQmlContextData::imports(), initCreator(), QQmlProperty::isValid(), QQmlType::isValid(), QString::number(), property, QV4::CompiledData::Binding::propertyNameIndex, Q_ASSERT, Q_FALLTHROUGH, qmlAttachedPropertiesObject(), qmlContext(), qmlWarning(), QQmlTypeNameCache::query(), QVLABaseBase::size(), QV4::CompiledData::Binding::type(), QV4::CompiledData::Binding::Type_AttachedProperty, QV4::CompiledData::Binding::Type_Boolean, QV4::CompiledData::Binding::Type_GroupProperty, QV4::CompiledData::Binding::Type_Invalid, QV4::CompiledData::Binding::Type_Null, QV4::CompiledData::Binding::Type_Number, QV4::CompiledData::Binding::Type_Object, QV4::CompiledData::Binding::Type_Script, QV4::CompiledData::Binding::Type_String, QV4::CompiledData::Binding::Type_Translation, QV4::CompiledData::Binding::Type_TranslationById, QQmlType::typeName(), QV4::CompiledData::Binding::value, QV4::CompiledData::Binding::valueAsBoolean(), and var.

Referenced by buildBindEntries(), and decodeBinding().

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

◆ evalDelayed()

void QQmlBindPrivate::evalDelayed ( )

Definition at line 926 of file qqmlbind.cpp.

References delayedValues, entries, ok, pending, Q_ASSERT, QStringLiteral, QVLABaseBase::size(), and when.

+ Here is the call graph for this function:

◆ onDelayedValueChanged()

void QQmlBindPrivate::onDelayedValueChanged ( QString delayedName)

◆ targetEntry()

QQmlBindEntry * QQmlBindPrivate::targetEntry ( )

Definition at line 298 of file qqmlbind.cpp.

References QVarLengthArray< T, Prealloc >::append(), entries, QVarLengthArray< T, Prealloc >::last(), and lastIsTarget.

+ Here is the call graph for this function:

◆ validate()

void QQmlBindPrivate::validate ( QQmlBind * binding) const

Definition at line 307 of file qqmlbind.cpp.

References entries, i, QVarLengthArray< T, Prealloc >::isEmpty(), QQmlProperty::isValid(), QVarLengthArray< T, Prealloc >::last(), lastIsTarget, QQmlMetaType::prettyTypeName(), QQmlBindEntry::prop, propName, Q_ASSERT, qmlWarning(), QVLABaseBase::size(), validate(), and when.

Referenced by validate().

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

Member Data Documentation

◆ componentComplete

bool QQmlBindPrivate::componentComplete

Definition at line 245 of file qqmlbind.cpp.

Referenced by onDelayedValueChanged().

◆ delayed

bool QQmlBindPrivate::delayed

Definition at line 249 of file qqmlbind.cpp.

Referenced by decodeBinding(), and onDelayedValueChanged().

◆ delayedValues

std::unique_ptr<QQmlPropertyMap> QQmlBindPrivate::delayedValues

◆ entries

QVarLengthArray<QQmlBindEntry, 1> QQmlBindPrivate::entries

Definition at line 227 of file qqmlbind.cpp.

Referenced by decodeBinding(), evalDelayed(), targetEntry(), and validate().

◆ lastIsTarget

bool QQmlBindPrivate::lastIsTarget

Definition at line 276 of file qqmlbind.cpp.

Referenced by targetEntry(), and validate().

◆ obj

QPointer<QObject> QQmlBindPrivate::obj

Definition at line 230 of file qqmlbind.cpp.

◆ pendingEval

bool QQmlBindPrivate::pendingEval

Definition at line 254 of file qqmlbind.cpp.

◆ propName

QString QQmlBindPrivate::propName

Definition at line 238 of file qqmlbind.cpp.

Referenced by validate().

◆ restoreBinding

bool QQmlBindPrivate::restoreBinding

Definition at line 258 of file qqmlbind.cpp.

◆ restoreValue

bool QQmlBindPrivate::restoreValue

Definition at line 262 of file qqmlbind.cpp.

◆ when

bool QQmlBindPrivate::when

Definition at line 241 of file qqmlbind.cpp.

Referenced by evalDelayed(), and validate().

◆ writingProperty

bool QQmlBindPrivate::writingProperty

Definition at line 271 of file qqmlbind.cpp.


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