|
| QgsAttributeEditorContainer (const QString &name, QgsAttributeEditorElement *parent, const QColor &backgroundColor=QColor()) |
| Creates a new attribute editor container. More...
|
|
| ~QgsAttributeEditorContainer () override |
|
virtual void | addChildElement (QgsAttributeEditorElement *element) |
| Add a child element to this container. More...
|
|
QColor | backgroundColor () const |
| backgroundColor More...
|
|
QList< QgsAttributeEditorElement * > | children () const |
| Gets a list of the children elements of this container. More...
|
|
void | clear () |
| Clear all children from this container. More...
|
|
QgsAttributeEditorElement * | clone (QgsAttributeEditorElement *parent) const override |
| Creates a deep copy of this element. More...
|
|
bool | collapsed () const |
| For group box containers returns if this group box is collapsed. More...
|
|
QgsOptionalExpression | collapsedExpression () const |
| The collapsed expression is used in the attribute form to set the collapsed status of the group box container container based on an expression incorporating the field value controlled by editor widgets. More...
|
|
int | columnCount () const |
| Gets the number of columns in this group. More...
|
|
virtual QList< QgsAttributeEditorElement * > | findElements (AttributeEditorType type) const |
| Traverses the element tree to find any element of the specified type. More...
|
|
virtual bool | isGroupBox () const |
| Returns if this container is going to be a group box. More...
|
|
void | setBackgroundColor (const QColor &backgroundColor) |
| Sets the background color to backgroundColor. More...
|
|
void | setCollapsed (bool collapsed) |
| For group box containers sets if this group box is collapsed. More...
|
|
void | setCollapsedExpression (const QgsOptionalExpression &collapsedExpression) |
| The collapsed expression is used in the attribute form to set the collapsed status of the group box of this container based on an expression incorporating the field value controlled by editor widgets. More...
|
|
void | setColumnCount (int columnCount) |
| Set the number of columns in this group. More...
|
|
virtual void | setIsGroupBox (bool isGroupBox) |
| Determines if this container is rendered as collapsible group box or tab in a tabwidget. More...
|
|
void | setName (const QString &name) |
| Change the name of this container. More...
|
|
void | setVisibilityExpression (const QgsOptionalExpression &visibilityExpression) |
| The visibility expression is used in the attribute form to show or hide this container based on an expression incorporating the field value controlled by editor widgets. More...
|
|
QgsOptionalExpression | visibilityExpression () const |
| The visibility expression is used in the attribute form to show or hide this container based on an expression incorporating the field value controlled by editor widgets. More...
|
|
| QgsAttributeEditorElement (AttributeEditorType type, const QString &name, QgsAttributeEditorElement *parent=nullptr) |
| Constructor. More...
|
|
virtual | ~QgsAttributeEditorElement ()=default |
|
virtual QgsAttributeEditorElement * | clone (QgsAttributeEditorElement *parent) const =0 |
| Returns a clone of this element. More...
|
|
LabelStyle | labelStyle () const |
| Returns the label style. More...
|
|
QString | name () const |
| Returns the name of this element. More...
|
|
QgsAttributeEditorElement * | parent () const |
| Gets the parent of this element. More...
|
|
void | setLabelStyle (const LabelStyle &labelStyle) |
| Sets the labelStyle. More...
|
|
void | setShowLabel (bool showLabel) |
| Controls if this element should be labeled with a title (field, relation or groupname). More...
|
|
bool | showLabel () const |
| Controls if this element should be labeled with a title (field, relation or groupname). More...
|
|
QDomElement | toDomElement (QDomDocument &doc) const |
| Gets the XML Dom element to save this element. More...
|
|
AttributeEditorType | type () const |
| The type of this element. More...
|
|