Skip to content

Commit b06f00d

Browse files
committed
Fix dox test
1 parent 6021683 commit b06f00d

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

python/gui/auto_generated/processing/qgsprocessingalgorithmconfigurationwidget.sip.in

+13
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ to fine-tune its behavior.
5252
Subclasses should take care to call the base class method when reimplementing this method.
5353

5454
.. seealso:: :py:func:`widgetContext`
55+
56+
.. versionadded:: 3.6
57+
%End
58+
59+
const QgsProcessingParameterWidgetContext &widgetContext() const;
60+
%Docstring
61+
Returns the context in which the Processing algorithm widget is shown, e.g., the
62+
parent model algorithm, a linked map canvas, and other relevant information which allows the widget
63+
to fine-tune its behavior.
64+
65+
.. seealso:: :py:func:`setWidgetContext`
66+
67+
.. versionadded:: 3.6
5568
%End
5669

5770
void setAlgorithm( const QgsProcessingAlgorithm *algorithm );

src/gui/processing/qgsprocessingalgorithmconfigurationwidget.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ void QgsProcessingAlgorithmConfigurationWidget::setWidgetContext( const QgsProce
2727
mWidgetContext = context;
2828
}
2929

30+
const QgsProcessingParameterWidgetContext &QgsProcessingAlgorithmConfigurationWidget::widgetContext() const
31+
{
32+
return mWidgetContext;
33+
}
34+
3035
void QgsProcessingAlgorithmConfigurationWidget::setAlgorithm( const QgsProcessingAlgorithm *algorithm )
3136
{
3237
mAlgorithm = algorithm;

src/gui/processing/qgsprocessingalgorithmconfigurationwidget.h

+11
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,20 @@ class GUI_EXPORT QgsProcessingAlgorithmConfigurationWidget : public QWidget, pub
6767
* Subclasses should take care to call the base class method when reimplementing this method.
6868
*
6969
* \see widgetContext()
70+
* \since QGIS 3.6
7071
*/
7172
virtual void setWidgetContext( const QgsProcessingParameterWidgetContext &context );
7273

74+
/**
75+
* Returns the context in which the Processing algorithm widget is shown, e.g., the
76+
* parent model algorithm, a linked map canvas, and other relevant information which allows the widget
77+
* to fine-tune its behavior.
78+
*
79+
* \see setWidgetContext()
80+
* \since QGIS 3.6
81+
*/
82+
const QgsProcessingParameterWidgetContext &widgetContext() const;
83+
7384
/**
7485
* Sets the algorithm instance associated with the widget.
7586
*

0 commit comments

Comments
 (0)