QGIS API Documentation 3.43.0-Master (56aa1fd18d7)
|
Main class to store and transfer editor data contained in a QgsAttributesFormModel. More...
#include <qgsattributesformmodel.h>
Public Member Functions | |
AttributeFormItemData ()=default | |
QColor | backgroundColor () const |
Returns the background color of a container. | |
bool | collapsed () const |
For group box containers returns if this group box is collapsed. | |
QgsOptionalExpression | collapsedExpression () const |
Returns the optional expression that dynamically controls the collapsed status of a group box container. | |
int | columnCount () const |
Returns the number of columns in a container. | |
Qgis::AttributeEditorContainerType | containerType () const |
Returns the container type. | |
int | horizontalStretch () const |
Returns the horizontal stretch factor for the element. | |
HtmlElementEditorConfiguration | htmlElementEditorConfiguration () const |
Returns the HTML editor configuration. | |
const QgsAttributeEditorElement::LabelStyle | labelStyle () const |
Returns the label style. | |
operator QVariant () | |
Allows direct construction of QVariants from AttributeFormItemData. | |
QmlElementEditorConfiguration | qmlElementEditorConfiguration () const |
Returns the QML editor configuration. | |
RelationEditorConfiguration | relationEditorConfiguration () const |
Returns the relation editor configuration. | |
void | setBackgroundColor (const QColor &backgroundColor) |
Sets the background color of a container. | |
void | setCollapsed (bool collapsed) |
For group box containers sets if this group box is collapsed. | |
void | setCollapsedExpression (const QgsOptionalExpression &collapsedExpression) |
Sets the optional collapsedExpression that dynamically controls the collapsed status of a group box container. | |
void | setColumnCount (int count) |
Sets the number of columns for a container. | |
void | setContainerType (Qgis::AttributeEditorContainerType type) |
Sets the container type. | |
void | setHorizontalStretch (int stretch) |
Sets the horizontal stretch factor for the element. | |
void | setHtmlElementEditorConfiguration (const HtmlElementEditorConfiguration &htmlElementEditorConfiguration) |
Sets the HTML editor configuration. | |
void | setLabelStyle (const QgsAttributeEditorElement::LabelStyle &labelStyle) |
Sets the label style to labelStyle. | |
void | setQmlElementEditorConfiguration (const QmlElementEditorConfiguration &qmlElementEditorConfiguration) |
Sets the QML editor configuration. | |
void | setRelationEditorConfiguration (const RelationEditorConfiguration &relationEditorConfiguration) |
Sets the relation editor configuration. | |
void | setShowLabel (bool showLabel) |
Sets whether the label for the widget should be shown. | |
void | setSpacerElementEditorConfiguration (SpacerElementEditorConfiguration spacerElementEditorConfiguration) |
Sets the the spacer element configuration to spacerElementEditorConfiguration. | |
void | setTextElementEditorConfiguration (const TextElementEditorConfiguration &textElementEditorConfiguration) |
Sets the editor configuration for text element to textElementEditorConfiguration. | |
void | setVerticalStretch (int stretch) |
Sets the vertical stretch factor for the element. | |
void | setVisibilityExpression (const QgsOptionalExpression &visibilityExpression) |
Sets the optional visibilityExpression that dynamically controls the visibility status of a container. | |
bool | showLabel () const |
Returns whether the widget's label is to be shown. | |
SpacerElementEditorConfiguration | spacerElementEditorConfiguration () const |
Returns the spacer element configuration. | |
TextElementEditorConfiguration | textElementEditorConfiguration () const |
Returns the editor configuration for text element. | |
int | verticalStretch () const |
Returns the vertical stretch factor for the element. | |
QgsOptionalExpression | visibilityExpression () const |
Returns the expression to control the visibility status of a container. | |
Main class to store and transfer editor data contained in a QgsAttributesFormModel.
Definition at line 124 of file qgsattributesformmodel.h.
|
default |
QColor QgsAttributesFormData::AttributeFormItemData::backgroundColor | ( | ) | const |
Returns the background color of a container.
Definition at line 154 of file qgsattributesformmodel.cpp.
|
inline |
For group box containers returns if this group box is collapsed.
true
if the group box is collapsed, false
otherwise. Definition at line 162 of file qgsattributesformmodel.h.
QgsOptionalExpression QgsAttributesFormData::AttributeFormItemData::collapsedExpression | ( | ) | const |
Returns the optional expression that dynamically controls the collapsed status of a group box container.
Definition at line 103 of file qgsattributesformmodel.cpp.
|
inline |
Returns the number of columns in a container.
Definition at line 133 of file qgsattributesformmodel.h.
Qgis::AttributeEditorContainerType QgsAttributesFormData::AttributeFormItemData::containerType | ( | ) | const |
Returns the container type.
Definition at line 63 of file qgsattributesformmodel.cpp.
|
inline |
Returns the horizontal stretch factor for the element.
Definition at line 201 of file qgsattributesformmodel.h.
QgsAttributesFormData::HtmlElementEditorConfiguration QgsAttributesFormData::AttributeFormItemData::htmlElementEditorConfiguration | ( | ) | const |
Returns the HTML editor configuration.
Definition at line 134 of file qgsattributesformmodel.cpp.
const QgsAttributeEditorElement::LabelStyle QgsAttributesFormData::AttributeFormItemData::labelStyle | ( | ) | const |
Returns the label style.
Definition at line 73 of file qgsattributesformmodel.cpp.
|
inline |
Allows direct construction of QVariants from AttributeFormItemData.
Definition at line 130 of file qgsattributesformmodel.h.
QgsAttributesFormData::QmlElementEditorConfiguration QgsAttributesFormData::AttributeFormItemData::qmlElementEditorConfiguration | ( | ) | const |
Returns the QML editor configuration.
Definition at line 123 of file qgsattributesformmodel.cpp.
QgsAttributesFormData::RelationEditorConfiguration QgsAttributesFormData::AttributeFormItemData::relationEditorConfiguration | ( | ) | const |
Returns the relation editor configuration.
Definition at line 113 of file qgsattributesformmodel.cpp.
void QgsAttributesFormData::AttributeFormItemData::setBackgroundColor | ( | const QColor & | backgroundColor | ) |
Sets the background color of a container.
Definition at line 159 of file qgsattributesformmodel.cpp.
|
inline |
For group box containers sets if this group box is collapsed.
Definition at line 171 of file qgsattributesformmodel.h.
void QgsAttributesFormData::AttributeFormItemData::setCollapsedExpression | ( | const QgsOptionalExpression & | collapsedExpression | ) |
Sets the optional collapsedExpression that dynamically controls the collapsed status of a group box container.
Definition at line 108 of file qgsattributesformmodel.cpp.
|
inline |
Sets the number of columns for a container.
Definition at line 136 of file qgsattributesformmodel.h.
void QgsAttributesFormData::AttributeFormItemData::setContainerType | ( | Qgis::AttributeEditorContainerType | type | ) |
Sets the container type.
Definition at line 68 of file qgsattributesformmodel.cpp.
|
inline |
Sets the horizontal stretch factor for the element.
Definition at line 211 of file qgsattributesformmodel.h.
void QgsAttributesFormData::AttributeFormItemData::setHtmlElementEditorConfiguration | ( | const HtmlElementEditorConfiguration & | htmlElementEditorConfiguration | ) |
Sets the HTML editor configuration.
Definition at line 139 of file qgsattributesformmodel.cpp.
void QgsAttributesFormData::AttributeFormItemData::setLabelStyle | ( | const QgsAttributeEditorElement::LabelStyle & | labelStyle | ) |
Sets the label style to labelStyle.
Definition at line 78 of file qgsattributesformmodel.cpp.
void QgsAttributesFormData::AttributeFormItemData::setQmlElementEditorConfiguration | ( | const QmlElementEditorConfiguration & | qmlElementEditorConfiguration | ) |
Sets the QML editor configuration.
Definition at line 128 of file qgsattributesformmodel.cpp.
void QgsAttributesFormData::AttributeFormItemData::setRelationEditorConfiguration | ( | const RelationEditorConfiguration & | relationEditorConfiguration | ) |
Sets the relation editor configuration.
Definition at line 118 of file qgsattributesformmodel.cpp.
void QgsAttributesFormData::AttributeFormItemData::setShowLabel | ( | bool | showLabel | ) |
Sets whether the label for the widget should be shown.
Definition at line 88 of file qgsattributesformmodel.cpp.
void QgsAttributesFormData::AttributeFormItemData::setSpacerElementEditorConfiguration | ( | SpacerElementEditorConfiguration | spacerElementEditorConfiguration | ) |
Sets the the spacer element configuration to spacerElementEditorConfiguration.
Definition at line 149 of file qgsattributesformmodel.cpp.
void QgsAttributesFormData::AttributeFormItemData::setTextElementEditorConfiguration | ( | const TextElementEditorConfiguration & | textElementEditorConfiguration | ) |
Sets the editor configuration for text element to textElementEditorConfiguration.
Definition at line 169 of file qgsattributesformmodel.cpp.
|
inline |
Sets the vertical stretch factor for the element.
Definition at line 231 of file qgsattributesformmodel.h.
void QgsAttributesFormData::AttributeFormItemData::setVisibilityExpression | ( | const QgsOptionalExpression & | visibilityExpression | ) |
Sets the optional visibilityExpression that dynamically controls the visibility status of a container.
Definition at line 98 of file qgsattributesformmodel.cpp.
bool QgsAttributesFormData::AttributeFormItemData::showLabel | ( | ) | const |
Returns whether the widget's label is to be shown.
Definition at line 83 of file qgsattributesformmodel.cpp.
QgsAttributesFormData::SpacerElementEditorConfiguration QgsAttributesFormData::AttributeFormItemData::spacerElementEditorConfiguration | ( | ) | const |
Returns the spacer element configuration.
Definition at line 144 of file qgsattributesformmodel.cpp.
QgsAttributesFormData::TextElementEditorConfiguration QgsAttributesFormData::AttributeFormItemData::textElementEditorConfiguration | ( | ) | const |
Returns the editor configuration for text element.
Definition at line 164 of file qgsattributesformmodel.cpp.
|
inline |
Returns the vertical stretch factor for the element.
Definition at line 221 of file qgsattributesformmodel.h.
QgsOptionalExpression QgsAttributesFormData::AttributeFormItemData::visibilityExpression | ( | ) | const |
Returns the expression to control the visibility status of a container.
Definition at line 93 of file qgsattributesformmodel.cpp.