QGIS API Documentation
3.2.0-Bonn (bc43194)
|
The QgsConditionalLayerStyles class holds conditional style information for a layer. More...
#include <qgsconditionalstyle.h>
Public Member Functions | |
QgsConditionalLayerStyles () | |
QList< QgsConditionalStyle > | fieldStyles (const QString &fieldName) |
Returns the conditional styles set for the field UI properties. More... | |
bool | readXml (const QDomNode &node, const QgsReadWriteContext &context) |
Reads field ui properties specific state from Dom node. More... | |
QList< QgsConditionalStyle > | rowStyles () |
void | setFieldStyles (const QString &fieldName, const QList< QgsConditionalStyle > &styles) |
Set the conditional styles for the field UI properties. More... | |
void | setRowStyles (const QList< QgsConditionalStyle > &styles) |
Set the conditional styles that apply to full rows of data in the attribute table. More... | |
bool | writeXml (QDomNode &node, QDomDocument &doc, const QgsReadWriteContext &context) const |
Write field ui properties specific state from Dom node. More... | |
The QgsConditionalLayerStyles class holds conditional style information for a layer.
This includes field styles and full row styles.
Definition at line 38 of file qgsconditionalstyle.h.
QgsConditionalLayerStyles::QgsConditionalLayerStyles | ( | ) |
Definition at line 23 of file qgsconditionalstyle.cpp.
QList< QgsConditionalStyle > QgsConditionalLayerStyles::fieldStyles | ( | const QString & | fieldName | ) |
Returns the conditional styles set for the field UI properties.
Definition at line 42 of file qgsconditionalstyle.cpp.
bool QgsConditionalLayerStyles::readXml | ( | const QDomNode & | node, |
const QgsReadWriteContext & | context | ||
) |
Reads field ui properties specific state from Dom node.
Definition at line 82 of file qgsconditionalstyle.cpp.
QList< QgsConditionalStyle > QgsConditionalLayerStyles::rowStyles | ( | ) |
Definition at line 27 of file qgsconditionalstyle.cpp.
void QgsConditionalLayerStyles::setFieldStyles | ( | const QString & | fieldName, |
const QList< QgsConditionalStyle > & | styles | ||
) |
Set the conditional styles for the field UI properties.
fieldName | name of field |
styles |
Definition at line 37 of file qgsconditionalstyle.cpp.
void QgsConditionalLayerStyles::setRowStyles | ( | const QList< QgsConditionalStyle > & | styles | ) |
Set the conditional styles that apply to full rows of data in the attribute table.
Each row will check be checked against each rule.
styles | The styles to assign to all the rows |
Definition at line 32 of file qgsconditionalstyle.cpp.
bool QgsConditionalLayerStyles::writeXml | ( | QDomNode & | node, |
QDomDocument & | doc, | ||
const QgsReadWriteContext & | context | ||
) | const |
Write field ui properties specific state from Dom node.
Definition at line 51 of file qgsconditionalstyle.cpp.