QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | Public Attributes | List of all members
QgsAttributeEditorElement::LabelStyle Struct Reference

The TabStyle struct defines color and font overrides for form fields, tabs and groups labels. More...

#include <qgsattributeeditorelement.h>

Public Member Functions

bool operator== (LabelStyle const &other) const
 Returns true if the style is equal to other. More...
 
void readXml (const QDomNode &node)
 Reads configuration from node. More...
 
QDomElement writeXml (QDomDocument &document) const
 Creates the XML configuration from document. More...
 

Public Attributes

QColor color
 Label font. More...
 
QFont font
 Label font. More...
 
bool overrideColor = false
 Override label color. More...
 
bool overrideFont = false
 Override label font. More...
 

Detailed Description

The TabStyle struct defines color and font overrides for form fields, tabs and groups labels.

Since
QGIS 3.26

Definition at line 73 of file qgsattributeeditorelement.h.

Member Function Documentation

◆ operator==()

bool QgsAttributeEditorElement::LabelStyle::operator== ( LabelStyle const &  other) const

Returns true if the style is equal to other.

Note
Not available in Python bindings

Definition at line 167 of file qgsattributeeditorelement.cpp.

◆ readXml()

void QgsAttributeEditorElement::LabelStyle::readXml ( const QDomNode &  node)

Reads configuration from node.

Note
Not available in Python bindings

Definition at line 127 of file qgsattributeeditorelement.cpp.

◆ writeXml()

QDomElement QgsAttributeEditorElement::LabelStyle::writeXml ( QDomDocument &  document) const

Creates the XML configuration from document.

Note
Not available in Python bindings

Definition at line 157 of file qgsattributeeditorelement.cpp.

Member Data Documentation

◆ color

QColor QgsAttributeEditorElement::LabelStyle::color

Label font.

Definition at line 77 of file qgsattributeeditorelement.h.

◆ font

QFont QgsAttributeEditorElement::LabelStyle::font

Label font.

Definition at line 80 of file qgsattributeeditorelement.h.

◆ overrideColor

bool QgsAttributeEditorElement::LabelStyle::overrideColor = false

Override label color.

Definition at line 83 of file qgsattributeeditorelement.h.

◆ overrideFont

bool QgsAttributeEditorElement::LabelStyle::overrideFont = false

Override label font.

Definition at line 86 of file qgsattributeeditorelement.h.


The documentation for this struct was generated from the following files: