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

(8628dbfd36586b9d1318470905410f4000dc0586)

+ Include dependency graph for qquicklayoutitemproxy.cpp:

Go to the source code of this file.

Macros

#define propertyForwarding(property, Property)
 
#define connectPropertyForwarding(property, Property)
 

Functions

 propertyForwarding (minimumWidth, MinimumWidth) propertyForwarding(minimumHeight
 
MinimumHeight propertyForwarding (preferredWidth, PreferredWidth) propertyForwarding(preferredHeight
 
MinimumHeight PreferredHeight propertyForwarding (maximumWidth, MaximumWidth) propertyForwarding(maximumHeight
 
MinimumHeight PreferredHeight MaximumHeight propertyForwarding (fillWidth, FillWidth) propertyForwarding(fillHeight
 
MinimumHeight PreferredHeight MaximumHeight FillHeight propertyForwarding (alignment, Alignment) propertyForwarding(horizontalStretchFactor
 
MinimumHeight PreferredHeight MaximumHeight FillHeight HorizontalStretchFactor propertyForwarding (verticalStretchFactor, VerticalStretchFactor) propertyForwarding(margins
 
MinimumHeight PreferredHeight MaximumHeight FillHeight HorizontalStretchFactor Margins propertyForwarding (leftMargin, LeftMargin) propertyForwarding(topMargin
 
MinimumHeight PreferredHeight MaximumHeight FillHeight HorizontalStretchFactor Margins TopMargin propertyForwarding (rightMargin, RightMargin) propertyForwarding(bottomMargin
 

Macro Definition Documentation

◆ connectPropertyForwarding

#define connectPropertyForwarding ( property,
Property )
Value:
if (!attProxy->is##Property##Set()) { \
connect(attProxy, &QQuickLayoutAttached::property##Changed, this, &QQuickLayoutItemProxy::proxy##Property##Changed); \
target##Property##Changed(); \
}
QVariant property(const char *name) const
Returns the value of the object's name property.
Definition qobject.cpp:4323
GLenum target
static constexpr const QLatin1String Changed("Changed")

◆ propertyForwarding

#define propertyForwarding ( property,
Property )
Value:
void QQuickLayoutItemProxy::target##Property##Changed() { \
QQuickLayoutAttached *attProxy = attachedLayoutObject(this, false); \
if (!attTarget) return; \
if (attProxy->property() == attTarget->property()) \
return; \
d->m_expectProxy##Property##Change = true; \
attProxy->set##Property(attTarget->property()); \
} \
void QQuickLayoutItemProxy::proxy##Property##Changed() { \
if (d->m_expectProxy##Property##Change) { \
d->m_expectProxy##Property##Change = false; \
return; \
} \
if (!attTarget) return; \
disconnect(attTarget, &QQuickLayoutAttached::property##Changed, this, &QQuickLayoutItemProxy::target##Property##Changed); \
}
QQuickLayoutAttached * attachedLayoutObject(QQuickItem *item, bool create=true)

Definition at line 156 of file qquicklayoutitemproxy.cpp.

Function Documentation

◆ propertyForwarding() [1/8]

MinimumHeight PreferredHeight MaximumHeight FillHeight propertyForwarding ( alignment ,
Alignment  )

◆ propertyForwarding() [2/8]

MinimumHeight PreferredHeight MaximumHeight propertyForwarding ( fillWidth ,
FillWidth  )

◆ propertyForwarding() [3/8]

MinimumHeight PreferredHeight MaximumHeight FillHeight HorizontalStretchFactor Margins propertyForwarding ( leftMargin ,
LeftMargin  )

◆ propertyForwarding() [4/8]

MinimumHeight PreferredHeight propertyForwarding ( maximumWidth ,
MaximumWidth  )

◆ propertyForwarding() [5/8]

propertyForwarding ( minimumWidth ,
MinimumWidth  )

◆ propertyForwarding() [6/8]

MinimumHeight propertyForwarding ( preferredWidth ,
PreferredWidth  )

◆ propertyForwarding() [7/8]

MinimumHeight PreferredHeight MaximumHeight FillHeight HorizontalStretchFactor Margins TopMargin propertyForwarding ( rightMargin ,
RightMargin  )

◆ propertyForwarding() [8/8]

MinimumHeight PreferredHeight MaximumHeight FillHeight HorizontalStretchFactor propertyForwarding ( verticalStretchFactor ,
VerticalStretchFactor  )