6#include <QtCore/qpointer.h>
7#include <QtQuick/qquickwindow.h>
8#include <QtQuick/private/qquickitem_p.h>
9#include <QtQuick/private/qquickitemchangelistener_p.h>
10#include <QtQuickTemplates2/private/qquickpopup_p.h>
95 QQuickPopup *popup = qobject_cast<QQuickPopup *>(objectWeAreAttachedTo);
113 if (objectWeAreAttachedTo) {
152 children += attached;
161 const auto &windowChildren =
item->children();
167 children += attached;
180 item = popup->popupItem();
254 q->attachedParentChange(
parent, oldParent);
298 d->setAttachedParent(
nullptr);
314 return d->attachedChildren;
329 return d->attachedParent;
380#include "moc_qquickattachedpropertypropagator.cpp"
QList< QGraphicsItem * > childItems() const
QGraphicsWidget * window() const
QGraphicsItem * parentItem() const
Returns a pointer to this item's parent item.
bool removeOne(const AT &t)
void append(parameter_type t)
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)
QObject * parent() const
Returns a pointer to the parent object.
QVariant property(const char *name) const
Returns the value of the object's name property.
bool setProperty(const char *name, const QVariant &value)
Sets the value of the object's name property to value.
The QQmlEngine class provides an environment for instantiating QML components.
QList< QQuickAttachedPropertyPropagator * > attachedChildren
QPointer< QQuickAttachedPropertyPropagator > attachedParent
void detachFrom(QObject *object)
static QQuickAttachedPropertyPropagatorPrivate * get(QQuickAttachedPropertyPropagator *attachedObject)
void itemParentChanged(QQuickItem *item, QQuickItem *parent) override
void itemWindowChanged(QQuickWindow *window)
void attachTo(QObject *object)
void setAttachedParent(QQuickAttachedPropertyPropagator *parent)
The QQuickAttachedPropertyPropagator class provides a way to propagate attached properties.
QQuickAttachedPropertyPropagator * attachedParent() const
This function returns the attached parent of this attached object.
~QQuickAttachedPropertyPropagator()
Destroys the QQuickAttachedPropertyPropagator.
QQuickAttachedPropertyPropagator(QObject *parent=nullptr)
Constructs a QQuickAttachedPropertyPropagator with the given parent.
QList< QQuickAttachedPropertyPropagator * > attachedChildren() const
This function returns the attached children of this attached object.
void initialize()
Finds and sets the attached parent for this attached object, and then does the same for its children.
virtual void attachedParentChange(QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent)
This function is called whenever the attached parent of this QQuickAttachedPropertyPropagator changes...
void removeItemChangeListener(QQuickItemChangeListener *, ChangeTypes types)
void addItemChangeListener(QQuickItemChangeListener *listener, ChangeTypes types)
static QQuickItemPrivate * get(QQuickItem *item)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QQuickWindow * window() const
Returns the window in which this item is rendered.
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Combined button and popup list for selecting options.
GLdouble GLdouble GLdouble GLdouble q
QQmlAttachedPropertiesFunc qmlAttachedPropertiesFunction(QObject *object, const QMetaObject *attachedMetaObject)
QQmlEngine * qmlEngine(const QObject *obj)
QObject * qmlAttachedPropertiesObject(QObject *object, QQmlAttachedPropertiesFunc func, bool create)
static QList< QQuickAttachedPropertyPropagator * > findAttachedChildren(const QMetaObject *type, QObject *object)
static QQuickAttachedPropertyPropagator * attachedObject(const QMetaObject *type, QObject *object, bool create=false)
static QQuickItem * findAttachedItem(QObject *parent)
static QQuickAttachedPropertyPropagator * findAttachedParent(const QMetaObject *ourAttachedType, QObject *objectWeAreAttachedTo)
QQuickItem * qobject_cast< QQuickItem * >(QObject *o)
obj metaObject() -> className()
myObject disconnect()
[26]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent