Skip to content

Commit afa04d9

Browse files
committedMay 23, 2018
Fix non-compliant docstrings
1 parent 8b1bbfe commit afa04d9

File tree

4 files changed

+22
-16
lines changed

4 files changed

+22
-16
lines changed
 

‎python/gui/auto_generated/editorwidgets/core/qgseditorwidgetwrapper.sip.in

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,33 +187,34 @@ Add a hint text on the widget
187187

188188
ConstraintResult constraintResult() const;
189189
%Docstring
190-
Getter of constraintResult
191-
It's the current result of the constraint on the widget influencing it's visualization.
190+
Returns the constraint result, which is the current result of the constraint
191+
on the widget influencing its visualization.
192192

193193
.. versionadded:: 3.0
194194
%End
195195

196196
bool constraintResultVisible() const;
197197
%Docstring
198-
Getter of constraintResultVisible
199-
Defines if the constraint result should be visualized on the widget (with color).
198+
Returns whether the constraint result is visible.
199+
200+
Returns true if the constraint result will be visualized on the widget (with color).
200201
This will be disabled when the form is not editable.
201202

202203
.. versionadded:: 3.0
203204
%End
204205

205206
void setConstraintResultVisible( bool constraintResultVisible );
206207
%Docstring
207-
Setter of constraintResultVisible
208-
Defines if the constraint result should be visualized on the widget (with color).
208+
Sets whether the constraint result is visible.
209+
210+
Controls if the constraint result should be visualized on the widget (with color).
209211
This will be disabled when the form is not editable.
210212

211213
:param constraintResultVisible: if constraintResult should be displayed (mostly editable status)
212214

213215
.. versionadded:: 3.0
214216
%End
215217

216-
217218
signals:
218219

219220
void valueChanged( const QVariant &value );

‎python/gui/auto_generated/qgsattributetypeloaddialog.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Sets predefined vector layer for selection of data
3535

3636
QMap<QString, QVariant> &valueMap();
3737
%Docstring
38-
Getter to value map which is currently active
38+
Returns the value map which is currently active.
3939

4040
:return: value map of vlues selected from layer
4141
%End

‎src/gui/editorwidgets/core/qgseditorwidgetwrapper.h

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,30 +190,34 @@ class GUI_EXPORT QgsEditorWidgetWrapper : public QgsWidgetWrapper
190190
virtual void setHint( const QString &hintText );
191191

192192
/**
193-
* Getter of constraintResult
194-
* It's the current result of the constraint on the widget influencing it's visualization.
193+
* Returns the constraint result, which is the current result of the constraint
194+
* on the widget influencing its visualization.
195+
*
195196
* \since QGIS 3.0
196197
*/
197198
ConstraintResult constraintResult() const;
198199

199200
/**
200-
* Getter of constraintResultVisible
201-
* Defines if the constraint result should be visualized on the widget (with color).
201+
* Returns whether the constraint result is visible.
202+
*
203+
* Returns true if the constraint result will be visualized on the widget (with color).
202204
* This will be disabled when the form is not editable.
205+
*
203206
* \since QGIS 3.0
204207
*/
205208
bool constraintResultVisible() const;
206209

207210
/**
208-
* Setter of constraintResultVisible
209-
* Defines if the constraint result should be visualized on the widget (with color).
211+
* Sets whether the constraint result is visible.
212+
*
213+
* Controls if the constraint result should be visualized on the widget (with color).
210214
* This will be disabled when the form is not editable.
215+
*
211216
* \param constraintResultVisible if constraintResult should be displayed (mostly editable status)
212217
* \since QGIS 3.0
213218
*/
214219
void setConstraintResultVisible( bool constraintResultVisible );
215220

216-
217221
signals:
218222

219223
/**

‎src/gui/qgsattributetypeloaddialog.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class GUI_EXPORT QgsAttributeTypeLoadDialog: public QDialog, private Ui::QgsAttr
5252
void setVectorLayer( QgsVectorLayer *layer );
5353

5454
/**
55-
* Getter to value map which is currently active
55+
* Returns the value map which is currently active.
56+
*
5657
* \returns value map of vlues selected from layer
5758
*/
5859
QMap<QString, QVariant> &valueMap();

0 commit comments

Comments
 (0)