QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Public Attributes | List of all members
QgsComposerTableStyle Class Reference

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

#include <qgscomposertablev2.h>

Public Member Functions

 QgsComposerTableStyle ()
 
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
 Cell background color. More...
 
bool enabled
 Whether the styling option is enabled. More...
 

Detailed Description

Styling option for a composer table cell.

Note
added in QGIS 2.12

Definition at line 55 of file qgscomposertablev2.h.

Constructor & Destructor Documentation

◆ QgsComposerTableStyle()

QgsComposerTableStyle::QgsComposerTableStyle ( )
inline

Definition at line 59 of file qgscomposertablev2.h.

Member Function Documentation

◆ readXML()

bool QgsComposerTableStyle::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 37 of file qgscomposertablev2.cpp.

◆ writeXML()

bool QgsComposerTableStyle::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 29 of file qgscomposertablev2.cpp.

Member Data Documentation

◆ cellBackgroundColor

QColor QgsComposerTableStyle::cellBackgroundColor

Cell background color.

Definition at line 68 of file qgscomposertablev2.h.

◆ enabled

bool QgsComposerTableStyle::enabled

Whether the styling option is enabled.

Definition at line 65 of file qgscomposertablev2.h.


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