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>.
|
#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"
Go to the source code of this file.
Classes | |
class | QQuickAttachedPropertyPropagatorPrivate |
Functions | |
static QQuickAttachedPropertyPropagator * | attachedObject (const QMetaObject *type, QObject *object, bool create=false) |
static QQuickAttachedPropertyPropagator * | findAttachedParent (const QMetaObject *ourAttachedType, QObject *objectWeAreAttachedTo) |
static QList< QQuickAttachedPropertyPropagator * > | findAttachedChildren (const QMetaObject *type, QObject *object) |
static QQuickItem * | findAttachedItem (QObject *parent) |
const QMetaObject * | firstCppMetaObject (QQuickAttachedPropertyPropagator *propagator) |
QDebug | operator<< (QDebug debug, const QQuickAttachedPropertyPropagator *propagator) |
|
static |
Definition at line 58 of file qquickattachedpropertypropagator.cpp.
References create(), qmlAttachedPropertiesFunction(), and qmlAttachedPropertiesObject().
Referenced by QQuickSwipeDelegatePrivate::attachedObjectsSetPressed(), QQuickSwipeDelegate::childMouseEventFilter(), QQmlBindPrivate::decodeBinding(), findAttachedChildren(), findAttachedParent(), QQuickAttachedPropertyPropagatorPrivate::get(), QQuickTableViewPrivate::getAttachedObject(), QQuickSelectionRectanglePrivate::getAttachedObject(), QQuickListViewPrivate::getAttachedObject(), QQuickAttachedPropertyPropagatorPrivate::itemWindowChanged(), QQuickSwipeDelegate::mouseUngrabEvent(), and QQuickAttachedPropertyPropagatorPrivate::transientParentWindowChanged().
|
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().
|
static |
Definition at line 230 of file qquickattachedpropertypropagator.cpp.
References item, and qobject_cast< QQuickItem * >().
Referenced by QQuickAttachedPropertyPropagatorPrivate::attachTo(), and QQuickAttachedPropertyPropagatorPrivate::detachFrom().
|
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().
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().
QDebug operator<< | ( | QDebug | debug, |
const QQuickAttachedPropertyPropagator * | propagator ) |
Definition at line 479 of file qquickattachedpropertypropagator.cpp.