Skip to content

Commit

Permalink
sipify
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 12, 2024
1 parent 15a4fdb commit 8ded78f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@




class QgsSettingsEditorWidgetWrapper : QObject
{
%Docstring(signature="appended")
Expand Down Expand Up @@ -82,13 +83,17 @@ Sets the ``value`` of the widget
The wrapper must be configured before calling this medthod
%End

void enableAutomaticUpdate();
void configureAutomaticUpdate( QDialog *dialog = 0 );
%Docstring
Enables automatic update
so that the setting gets update
on value change in the widget and
sets the widget to the current settings value.
This must called after createEditor or configureEditor.
Enables automatic update, which causes the setting to be updated immediately when the widget
value is changed.

If a ``dialog`` is provided, the setting will be updated when the dialog is accepted.
If not, the setting will be updated directly at each widget value change.

.. note::

This must called after :py:func:`~QgsSettingsEditorWidgetWrapper.createEditor` or :py:func:`~QgsSettingsEditorWidgetWrapper.configureEditor`.

.. versionadded:: 3.40
%End
Expand All @@ -107,9 +112,8 @@ Configures an existing ``editor`` widget

virtual void enableAutomaticUpdatePrivate() = 0;
%Docstring
Enables automatic update
so that the setting gets update
on value change in the widget.
Enables automatic update, which causes the setting to be updated immediately when the widget
value is changed.

.. versionadded:: 3.40
%End
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ Sets the ``value`` of the widget
The wrapper must be configured before calling this medthod
%End

void enableAutomaticUpdate( QDialog *dialog = 0 );
void configureAutomaticUpdate( QDialog *dialog = 0 );
%Docstring
Enables automatic update, which causes the setting to be updated immediately when the widget
value is changed.

If a ``dialog`` is provided, the setting will be updated when the dialog is accpeted.
If a ``dialog`` is provided, the setting will be updated when the dialog is accepted.
If not, the setting will be updated directly at each widget value change.

.. note::
Expand Down

0 comments on commit 8ded78f

Please sign in to comment.