Skip to content

Commit

Permalink
fix move
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Apr 29, 2021
1 parent e5e8efe commit 81ed419
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions python/core/auto_generated/qgsmaplayer.sip.in
Expand Up @@ -1061,6 +1061,24 @@ Write just the symbology information for the layer into the document
%End


void setDataSource( const QString &dataSource, const QString &baseName, const QString &provider, bool loadDefaultStyleFlag = false );
%Docstring
Updates the data source of the layer. The layer's renderer and legend will be preserved only
if the geometry type of the new data source matches the current geometry type of the layer.

This method was defined in :py:class:`QgsVectorLayer` since 2.10 and was marked as deprecated since 3.2

:param dataSource: new layer data source
:param baseName: base name of the layer
:param provider: provider string
:param loadDefaultStyleFlag: set to ``True`` to reset the layer's style to the default for the
data source

.. seealso:: :py:func:`dataSourceChanged`

.. versionadded:: 3.20
%End

void setDataSource( const QString &dataSource, const QString &baseName, const QString &provider, const QgsDataProvider::ProviderOptions &options, bool loadDefaultStyleFlag = false );
%Docstring
Updates the data source of the layer. The layer's renderer and legend will be preserved only
Expand Down

0 comments on commit 81ed419

Please sign in to comment.