Skip to content

Commit

Permalink
sip deprecated of forceReload and some doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Dec 13, 2019
1 parent 625d601 commit d788d0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions python/core/auto_generated/qgsvectordataprovider.sip.in
Expand Up @@ -546,7 +546,7 @@ providers will return ``None``.
Returns the transaction this data provider is included in, if any.
%End

virtual void forceReload();
virtual void forceReload() /Deprecated/;
%Docstring
Forces a reload of the underlying datasource if the provider implements this
method.
Expand All @@ -555,7 +555,7 @@ This forces QGIS to reopen a file or connection.
This can be required if the underlying file is replaced.

.. deprecated::
Will be removed in QGIS 4.0
QGIS 3.12 - will be removed in QGIS 4.0 - use reloadData instead
%End

virtual QSet<QgsMapLayerDependency> dependencies() const;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsdataprovider.h
Expand Up @@ -359,7 +359,7 @@ 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
* \see reloadProviderData
* \see reloadProviderData()
*/
virtual void reloadData();

Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsvectordataprovider.h
Expand Up @@ -554,9 +554,9 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider, public QgsFeat
* 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 Will be removed in QGIS 4.0
* \deprecated QGIS 3.12 - will be removed in QGIS 4.0 - use reloadData instead
*/
Q_DECL_DEPRECATED virtual void forceReload() { reloadData(); }
Q_DECL_DEPRECATED virtual void forceReload() SIP_DEPRECATED { reloadData(); }

/**
* Gets the list of layer ids on which this layer depends. This in particular determines the order of layer loading.
Expand Down

0 comments on commit d788d0f

Please sign in to comment.