QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | Public Attributes | List of all members
QgsLayoutTableStyle Class Reference

Styling option for a layout table cell. More...

#include <qgslayouttable.h>

Public Member Functions

 QgsLayoutTableStyle ()=default
 Constructor for QgsLayoutTableStyle. More...
 
bool readXml (const QDomElement &styleElem)
 Reads the style's properties from XML. More...
 
bool writeXml (QDomElement &styleElem, QDomDocument &doc) const
 Writes the style's properties to XML for storage. More...
 

Public Attributes

QColor cellBackgroundColor = QColor( 255, 255, 255, 255 )
 Cell background color. More...
 
bool enabled = false
 Whether the styling option is enabled. More...
 

Detailed Description

Styling option for a layout table cell.

Since
QGIS 3.0

Definition at line 76 of file qgslayouttable.h.

Constructor & Destructor Documentation

◆ QgsLayoutTableStyle()

QgsLayoutTableStyle::QgsLayoutTableStyle ( )
default

Constructor for QgsLayoutTableStyle.

Member Function Documentation

◆ readXml()

bool QgsLayoutTableStyle::readXml ( const QDomElement &  styleElem)

Reads the style's properties from XML.

Parameters
styleElema QDomElement holding the style's desired properties.
See also
writeXml

Definition at line 41 of file qgslayouttable.cpp.

◆ writeXml()

bool QgsLayoutTableStyle::writeXml ( QDomElement &  styleElem,
QDomDocument &  doc 
) const

Writes the style's properties to XML for storage.

Parameters
styleEleman existing QDomElement in which to store the style's properties.
docQDomDocument for the destination XML.
See also
readXml

Definition at line 33 of file qgslayouttable.cpp.

Member Data Documentation

◆ cellBackgroundColor

QColor QgsLayoutTableStyle::cellBackgroundColor = QColor( 255, 255, 255, 255 )

Cell background color.

Definition at line 87 of file qgslayouttable.h.

◆ enabled

bool QgsLayoutTableStyle::enabled = false

Whether the styling option is enabled.

Definition at line 84 of file qgslayouttable.h.


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