QQuickLayoutItemProxyAttachedData Class
Provides attached properties for items that are managed by one or more LayoutItemProxy. More...
Header: | #include <QQuickLayoutItemProxyAttachedData> |
Inherits: | QObject |
Public Functions
QQuickLayoutItemProxy * | getControllingProxy() const |
const QList<QQuickLayoutItemProxy *> & | getProxies() const |
bool | proxyHasControl() const |
void | registerProxy(QQuickLayoutItemProxy *proxy) |
void | releaseControl(QQuickLayoutItemProxy *proxy) |
void | releaseProxy(QQuickLayoutItemProxy *proxy) |
bool | takeControl(QQuickLayoutItemProxy *proxy) |
Signals
void | controllingProxyChanged() |
void | proxiesChanged() |
Detailed Description
\internal
It stores all proxies that target the item, and will emit signals when the proxies or the controlling proxy changes. Proxies can listen to the signal and pick up control if they wish to.
Member Function Documentation
QQuickLayoutItemProxy *QQuickLayoutItemProxyAttachedData::getControllingProxy() const
\internal
QQuickLayoutItemProxyAttachedData::getControllingProxy Returns the proxy that currently controls the item this data is attached to. Returns null
if no proxy controls the item.
Note: Getter function for property controllingProxy.
const QList<QQuickLayoutItemProxy *> &QQuickLayoutItemProxyAttachedData::getProxies() const
\internal
QQuickLayoutItemProxyAttachedData::getProxies Returns a list of all proxies that target the item this data is attached to.
Note: Getter function for property proxies.
bool QQuickLayoutItemProxyAttachedData::proxyHasControl() const
\internal
QQuickLayoutItemProxyAttachedData::proxyHasControl Returns true
if a proxy is controlling the item, false
otherwise.
Note: Getter function for property proxyHasControl.
void QQuickLayoutItemProxyAttachedData::registerProxy(QQuickLayoutItemProxy *proxy)
\internal
QQuickLayoutItemProxyAttachedData::registerProxy registers a proxy that manages the item this data is attached to.
This is required to easily notify proxies when the target is destroyed or when it is free to take over control.
void QQuickLayoutItemProxyAttachedData::releaseControl(QQuickLayoutItemProxy *proxy)
\internal
QQuickLayoutItemProxyAttachedData::releaseControl is called by LayoutItemProxies when they try no longer control the item
proxy The proxy that gives up control.
void QQuickLayoutItemProxyAttachedData::releaseProxy(QQuickLayoutItemProxy *proxy)
\internal
QQuickLayoutItemProxyAttachedData::releaseProxy removes a proxy from a list of known proxies that manage the item this data is attached to.
bool QQuickLayoutItemProxyAttachedData::takeControl(QQuickLayoutItemProxy *proxy)
\internal
QQuickLayoutItemProxyAttachedData::takeControl is called by LayoutItemProxies when they try to take control over the item this data is attached to. Returns true
if no other proxy controls the item and if control is granted to the proxy, false
otherwise.
proxy The proxy that tries to take control.