Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquicklayoutitemproxy.cpp File Reference

(01cd43d30e3ca2c4dd94a4a4711604adb9417517)

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:4544
static constexpr const QLatin1String Changed("Changed")
EGLContext EGLenum target

◆ 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; \
} \
QQuickLayoutAttached *attTarget = attachedLayoutObject(target(), false); \
if (!attTarget) return; \
}
QQuickLayoutAttached * attachedLayoutObject(QQuickItem *item, bool create=true)

Definition at line 159 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  )