|
QGIS API Documentation
2.12.0-Lyon
|
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) |
| 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 |
| 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 22 of file qgsconditionalstyle.h.
| QgsConditionalLayerStyles::QgsConditionalLayerStyles | ( | ) |
Definition at line 9 of file qgsconditionalstyle.cpp.
| QList< QgsConditionalStyle > QgsConditionalLayerStyles::fieldStyles | ( | const QString & | fieldName | ) |
Returns the conditional styles set for the field UI properties.
Definition at line 28 of file qgsconditionalstyle.cpp.
| bool QgsConditionalLayerStyles::readXml | ( | const QDomNode & | node | ) |
Reads field ui properties specific state from Dom node.
Definition at line 67 of file qgsconditionalstyle.cpp.
| QList< QgsConditionalStyle > QgsConditionalLayerStyles::rowStyles | ( | ) |
Definition at line 13 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 23 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 18 of file qgsconditionalstyle.cpp.
| bool QgsConditionalLayerStyles::writeXml | ( | QDomNode & | node, |
| QDomDocument & | doc | ||
| ) | const |
Write field ui properties specific state from Dom node.
Definition at line 37 of file qgsconditionalstyle.cpp.
1.8.9.1