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
qquickattachedpropertypropagator.cpp File Reference

(c5b6beeff2e1ae2e18546f6bb39ebbed2e972b23)

#include "qquickattachedpropertypropagator.h"
#include <QtCore/qpointer.h>
#include <QtQuick/qquickwindow.h>
#include <QtQuick/private/qquickitem_p.h>
#include <QtQuick/private/qquickitemchangelistener_p.h>
#include <QtQuickTemplates2/private/qquickpopup_p.h>
#include <QtQuickTemplates2/private/qquickpopupitem_p_p.h>
#include "moc_qquickattachedpropertypropagator.cpp"
+ Include dependency graph for qquickattachedpropertypropagator.cpp:

Go to the source code of this file.

Classes

class  QQuickAttachedPropertyPropagatorPrivate
 

Functions

static QQuickAttachedPropertyPropagatorattachedObject (const QMetaObject *type, QObject *object, bool create=false)
 
static QQuickAttachedPropertyPropagatorfindAttachedParent (const QMetaObject *ourAttachedType, QObject *objectWeAreAttachedTo)
 
static QList< QQuickAttachedPropertyPropagator * > findAttachedChildren (const QMetaObject *type, QObject *object)
 
static QQuickItemfindAttachedItem (QObject *parent)
 
const QMetaObjectfirstCppMetaObject (QQuickAttachedPropertyPropagator *propagator)
 
QDebug operator<< (QDebug debug, const QQuickAttachedPropertyPropagator *propagator)
 

Function Documentation

◆ attachedObject()

◆ findAttachedChildren()

static QList< QQuickAttachedPropertyPropagator * > findAttachedChildren ( const QMetaObject * type,
QObject * object )
static

Definition at line 185 of file qquickattachedpropertypropagator.cpp.

References attachedObject(), child, QGraphicsItem::childItems(), findAttachedChildren(), item, qobject_cast< QQuickItem * >(), and window().

Referenced by findAttachedChildren(), and QQuickAttachedPropertyPropagator::initialize().

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

◆ findAttachedItem()

static QQuickItem * findAttachedItem ( QObject * parent)
static

Definition at line 230 of file qquickattachedpropertypropagator.cpp.

References item, and qobject_cast< QQuickItem * >().

Referenced by QQuickAttachedPropertyPropagatorPrivate::attachTo(), and QQuickAttachedPropertyPropagatorPrivate::detachFrom().

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

◆ findAttachedParent()

static QQuickAttachedPropertyPropagator * findAttachedParent ( const QMetaObject * ourAttachedType,
QObject * objectWeAreAttachedTo )
static

Tries to find a QQuickAttachedPropertyPropagator whose type is ourAttachedType and is attached to an ancestor of objectWeAreAttachedTo.

QQuickAttachedPropertyPropagator needs to know who its parent attached object is in order to inherit attached property values from it. This is called when an instance of QQuickAttachedPropertyPropagator is created, and whenever {objectWeAreAttachedTo}'s parent changes, for example.

Definition at line 77 of file qquickattachedpropertypropagator.cpp.

References attachedObject(), engine, QVariant::fromValue(), QQuickPopupItemPrivate::get(), item, QQuickItem::parent, QGraphicsItem::parentItem(), QQuickItem::parentItem(), QObject::property(), QByteArray(), qCDebug, qmlEngine(), qobject_cast< QQuickItem * >(), QObject::setProperty(), QVariant::value(), window(), QGraphicsItem::window(), and QQuickItem::window().

Referenced by QQuickAttachedPropertyPropagator::initialize(), QQuickAttachedPropertyPropagatorPrivate::itemParentChanged(), QQuickAttachedPropertyPropagatorPrivate::itemWindowChanged(), and QQuickAttachedPropertyPropagatorPrivate::transientParentWindowChanged().

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

◆ firstCppMetaObject()

const QMetaObject * firstCppMetaObject ( QQuickAttachedPropertyPropagator * propagator)

Definition at line 334 of file qquickattachedpropertypropagator.cpp.

References QQmlData::ensurePropertyCache().

Referenced by QQuickAttachedPropertyPropagatorPrivate::itemParentChanged(), QQuickAttachedPropertyPropagatorPrivate::itemWindowChanged(), and QQuickAttachedPropertyPropagatorPrivate::transientParentWindowChanged().

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

◆ operator<<()

QDebug operator<< ( QDebug debug,
const QQuickAttachedPropertyPropagator * propagator )

Definition at line 479 of file qquickattachedpropertypropagator.cpp.