Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquicklayoutitemproxy.cpp File Reference
+ 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(attTarget, &QQuickLayoutAttached::property##Changed, this, &QQuickLayoutItemProxy::target##Property##Changed); \
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:4187
GLenum 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; \
} \
if (!attTarget) return; \
disconnect(attTarget, &QQuickLayoutAttached::property##Changed, this, &QQuickLayoutItemProxy::target##Property##Changed); \
}
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   
)