4#ifndef QQUICKLAYOUTITEMPROXY_P_H
5#define QQUICKLAYOUTITEMPROXY_P_H
18#include <private/qquickitem_p.h>
19#include <private/qquickrectangle_p.h>
23class QQuickLayoutItemProxyAttachedData;
29 Q_PROPERTY(QQuickItem *target READ target WRITE setTarget NOTIFY targetChanged)
37 void geometryChange(
const QRectF &newGeom,
const QRectF &oldGeom)
override;
38 void itemChange(ItemChange c,
const ItemChangeData &d)
override;
52#define propertyForwarding(Property)
53 void target##Property##Changed();
54 void proxy##Property##Changed();
72#undef propertyForwarding
83 Q_DECLARE_PUBLIC(QQuickLayoutItemProxy)
143 QList<QQuickLayoutItemProxy*> proxies;
Provides attached properties for items that are managed by one or more LayoutItemProxy.
QQmlListProperty< QQuickLayoutItemProxy > getProxies()
QQuickLayoutItemProxyAttachedData::getProxies.
QML_ANONYMOUSbool proxyHasControl
void controllingProxyChanged()
void registerProxy(QQuickLayoutItemProxy *proxy)
QQuickLayoutItemProxyAttachedData::registerProxy registers a proxy that manages the item this data is...
void releaseControl(QQuickLayoutItemProxy *proxy)
QQuickLayoutItemProxyAttachedData::releaseControl is called by LayoutItemProxies when they try no lon...
bool proxyHasControl() const
QQuickLayoutItemProxyAttachedData::proxyHasControl.
~QQuickLayoutItemProxyAttachedData() override
bool takeControl(QQuickLayoutItemProxy *proxy)
QQuickLayoutItemProxyAttachedData::takeControl is called by LayoutItemProxies when they try to take c...
void releaseProxy(QQuickLayoutItemProxy *proxy)
QQuickLayoutItemProxyAttachedData::releaseProxy removes a proxy from a list of known proxies that man...
QQuickLayoutItemProxy * getControllingProxy() const
QQuickLayoutItemProxyAttachedData::getControllingProxy.
unsigned m_expectProxyMarginsChange
unsigned m_expectProxyFillHeightChange
unsigned m_expectProxyPreferredHeightChange
unsigned m_expectProxyMaximumHeightChange
unsigned m_expectProxyTopMarginChange
unsigned m_expectProxyBottomMarginChange
unsigned m_expectProxyFillWidthChange
unsigned m_expectProxyMinimumHeightChange
unsigned m_expectProxyRightMarginChange
unsigned m_expectProxyLeftMarginChange
unsigned m_expectProxyMinimumWidthChange
unsigned m_expectProxyPreferredWidthChange
unsigned m_expectProxyVerticalStretchFactorChange
unsigned m_expectProxyMaximumWidthChange
unsigned m_expectProxyHorizontalStretchFactorChange
unsigned m_expectProxyAlignmentChange
void clearTarget()
QQuickLayoutItemProxy::clearTarget sets the target to null.
void setTarget(QQuickItem *newTarget)
QQuickLayoutItemProxy::setTarget sets the target.
void geometryChange(const QRectF &newGeom, const QRectF &oldGeom) override
QQuickLayoutItemProxy::geometryChange Reimplementation of QQuickItem::geometryChange to update the ta...
QQuickItem * target() const
\qmlproperty Item LayoutItemProxy::target
void itemChange(ItemChange c, const ItemChangeData &d) override
QQuickLayoutItemProxy::itemChange is a reimplementation of QQuickItem::itemChange to react to changes...
void maybeTakeControl()
QQuickLayoutItemProxy::maybeTakeControl checks and takes over control of the item.
~QQuickLayoutItemProxy() override
#define connectPropertyForwarding(property, Property)
#define propertyForwarding(property, Property)
QT_END_NAMESPACE Q_DECLARE_METATYPE(QQuickLayoutItemProxyAttachedData *)