Skip to content

Commit 4cdf05f

Browse files
committed
fix typo
1 parent 4aba0f4 commit 4cdf05f

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

python/core/qgsconditionalstyle.sip

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
typedef QList<QgsConditionalStyle> QgsConditionalStyles;
22

3+
34
/**
45
* @brief The QgsConditionalLayerStyles class holds conditional style information
56
* for a layer. This includes field styles and full row styles.
@@ -71,7 +72,7 @@ class QgsConditionalStyle
7172
* @brief Render a preview icon of the rule.
7273
* @return QPixmap preview of the style
7374
*/
74-
QPixmap renderPreview();
75+
QPixmap renderPreview() const;
7576

7677
/**
7778
* @brief Set the name of the style. Names are optional but handy for display
@@ -181,19 +182,19 @@ class QgsConditionalStyle
181182

182183
/**
183184
* @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.
185186
*
186187
* @return A condtional style that matches the value and feature.
187-
* Check with QgsCondtionalStyle::isValid()
188+
* Check with QgsConditionalStyle::isValid()
188189
*/
189190
static QList<QgsConditionalStyle> matchingConditionalStyles( const QList<QgsConditionalStyle>& styles, const QVariant& value, QgsExpressionContext& context );
190191

191192
/**
192193
* @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.
194195
*
195196
* @return A condtional style that matches the value and feature.
196-
* Check with QgsCondtionalStyle::isValid()
197+
* Check with QgsConditionalStyle::isValid()
197198
*/
198199
static QgsConditionalStyle matchingConditionalStyle( const QList<QgsConditionalStyle>& styles, const QVariant& value, QgsExpressionContext& context );
199200

@@ -211,5 +212,5 @@ class QgsConditionalStyle
211212

212213
/** Write vector conditional style specific state from layer Dom node.
213214
*/
214-
virtual bool writeXml( QDomNode & node, QDomDocument & doc );
215+
virtual bool writeXml( QDomNode & node, QDomDocument & doc ) const;
215216
};

src/core/qgsconditionalstyle.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class CORE_EXPORT QgsConditionalLayerStyles
6060
QList<QgsConditionalStyle> mRowStyles;
6161
};
6262

63-
/** \class QgsFieldFormat
63+
/** \class QgsConditionalStyle
64+
* \ingroup core
6465
* Conditional styling for a rule.
6566
*/
6667
class CORE_EXPORT QgsConditionalStyle
@@ -195,19 +196,19 @@ class CORE_EXPORT QgsConditionalStyle
195196

196197
/**
197198
* @brief Find and return the matching styles for the value and feature.
198-
* If no match is found a invalid QgsCondtionalStyle is return.
199+
* If no match is found a invalid QgsConditionalStyle is return.
199200
*
200201
* @return A condtional style that matches the value and feature.
201-
* Check with QgsCondtionalStyle::isValid()
202+
* Check with QgsConditionalStyle::isValid()
202203
*/
203204
static QList<QgsConditionalStyle> matchingConditionalStyles( const QList<QgsConditionalStyle>& styles, const QVariant& value, QgsExpressionContext& context );
204205

205206
/**
206207
* @brief Find and return the matching style for the value and feature.
207-
* If no match is found a invalid QgsCondtionalStyle is return.
208+
* If no match is found a invalid QgsConditionalStyle is return.
208209
*
209210
* @return A condtional style that matches the value and feature.
210-
* Check with QgsCondtionalStyle::isValid()
211+
* Check with QgsConditionalStyle::isValid()
211212
*/
212213
static QgsConditionalStyle matchingConditionalStyle( const QList<QgsConditionalStyle>& styles, const QVariant& value, QgsExpressionContext& context );
213214

src/ui/qgsfieldconditionalformatwidget.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<item>
4242
<widget class="QLabel" name="label_4">
4343
<property name="text">
44-
<string>Condtional Format Rules</string>
44+
<string>Conditional Format Rules</string>
4545
</property>
4646
<property name="alignment">
4747
<set>Qt::AlignCenter</set>

0 commit comments

Comments
 (0)