Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Dec 13, 2019
1 parent d788d0f commit b89f1e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion python/core/auto_generated/qgsdataprovider.sip.in
Expand Up @@ -267,7 +267,8 @@ databases and servers.
%Docstring
Reloads the data from the source by calling reloadProviderData() implemented
by providers with data caches to synchronize, changes in the data source, feature
counts and other specific actions and it calls the dataChanged signal
counts and other specific actions.
Emits the `dataChanged` signal

.. seealso:: :py:func:`reloadProviderData`
%End
Expand Down
5 changes: 0 additions & 5 deletions python/core/auto_generated/qgsvectordataprovider.sip.in
Expand Up @@ -548,11 +548,6 @@ Returns the transaction this data provider is included in, if any.

virtual void forceReload() /Deprecated/;
%Docstring
Forces a reload of the underlying datasource if the provider implements this
method.
In particular on the OGR provider, a pooled connection will be invalidated.
This forces QGIS to reopen a file or connection.
This can be required if the underlying file is replaced.

.. deprecated::
QGIS 3.12 - will be removed in QGIS 4.0 - use reloadData instead
Expand Down
4 changes: 3 additions & 1 deletion src/core/qgsdataprovider.h
Expand Up @@ -358,7 +358,8 @@ class CORE_EXPORT QgsDataProvider : public QObject
/**
* Reloads the data from the source by calling reloadProviderData() implemented
* by providers with data caches to synchronize, changes in the data source, feature
* counts and other specific actions and it calls the dataChanged signal
* counts and other specific actions.
* Emits the `dataChanged` signal
* \see reloadProviderData()
*/
virtual void reloadData();
Expand Down Expand Up @@ -618,6 +619,7 @@ class CORE_EXPORT QgsDataProvider : public QObject

/**
* Reloads the data according to the provider
* \since QGIS 3.12
*/
virtual void reloadProviderData() {}
};
Expand Down
7 changes: 1 addition & 6 deletions src/core/qgsvectordataprovider.h
Expand Up @@ -549,13 +549,8 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider, public QgsFeat
virtual QgsTransaction *transaction() const;

/**
* Forces a reload of the underlying datasource if the provider implements this
* method.
* In particular on the OGR provider, a pooled connection will be invalidated.
* This forces QGIS to reopen a file or connection.
* This can be required if the underlying file is replaced.
* \deprecated QGIS 3.12 - will be removed in QGIS 4.0 - use reloadData instead
*/
*/
Q_DECL_DEPRECATED virtual void forceReload() SIP_DEPRECATED { reloadData(); }

/**
Expand Down

0 comments on commit b89f1e0

Please sign in to comment.