1
1
typedef QList<QgsConditionalStyle> QgsConditionalStyles;
2
2
3
+
3
4
/**
4
5
* @brief The QgsConditionalLayerStyles class holds conditional style information
5
6
* for a layer. This includes field styles and full row styles.
@@ -71,7 +72,7 @@ class QgsConditionalStyle
71
72
* @brief Render a preview icon of the rule.
72
73
* @return QPixmap preview of the style
73
74
*/
74
- QPixmap renderPreview();
75
+ QPixmap renderPreview() const ;
75
76
76
77
/**
77
78
* @brief Set the name of the style. Names are optional but handy for display
@@ -181,19 +182,19 @@ class QgsConditionalStyle
181
182
182
183
/**
183
184
* @brief Find and return the matching styles for the value and feature.
184
- * If no match is found a invalid QgsCondtionalStyle is return.
185
+ * If no match is found a invalid QgsConditionalStyle is return.
185
186
*
186
187
* @return A condtional style that matches the value and feature.
187
- * Check with QgsCondtionalStyle ::isValid()
188
+ * Check with QgsConditionalStyle ::isValid()
188
189
*/
189
190
static QList<QgsConditionalStyle> matchingConditionalStyles( const QList<QgsConditionalStyle>& styles, const QVariant& value, QgsExpressionContext& context );
190
191
191
192
/**
192
193
* @brief Find and return the matching style for the value and feature.
193
- * If no match is found a invalid QgsCondtionalStyle is return.
194
+ * If no match is found a invalid QgsConditionalStyle is return.
194
195
*
195
196
* @return A condtional style that matches the value and feature.
196
- * Check with QgsCondtionalStyle ::isValid()
197
+ * Check with QgsConditionalStyle ::isValid()
197
198
*/
198
199
static QgsConditionalStyle matchingConditionalStyle( const QList<QgsConditionalStyle>& styles, const QVariant& value, QgsExpressionContext& context );
199
200
@@ -211,5 +212,5 @@ class QgsConditionalStyle
211
212
212
213
/** Write vector conditional style specific state from layer Dom node.
213
214
*/
214
- virtual bool writeXml( QDomNode & node, QDomDocument & doc );
215
+ virtual bool writeXml( QDomNode & node, QDomDocument & doc ) const ;
215
216
};
0 commit comments