Skip to content

Commit

Permalink
Fix deprecated method redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Mar 17, 2020
1 parent c72e003 commit 21f39d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsproviderregistry.sip.in
Expand Up @@ -170,7 +170,7 @@ Either the ``parent`` widget must be set or the caller becomes
responsible for deleting the returned widget.

.. deprecated::
QGIS 3.10 - use QgsGui.providerGuiRegistry()->createDataSourceWidget() instead
QGIS 3.10 - use QgsGui.providerGuiRegistry()->sourceSelectProviders(providerKey)[0]->createDataSourceWidget() instead
%End

QList< QgsDataItemProvider * > dataItemProviders( const QString &providerKey ) const /Factory/;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsproviderregistry.h
Expand Up @@ -187,7 +187,7 @@ class CORE_EXPORT QgsProviderRegistry
* Returns a new widget for selecting layers from a provider.
* Either the \a parent widget must be set or the caller becomes
* responsible for deleting the returned widget.
* \deprecated QGIS 3.10 - use QgsGui::providerGuiRegistry()->createDataSourceWidget() instead
* \deprecated QGIS 3.10 - use QgsGui::providerGuiRegistry()->sourceSelectProviders(providerKey)[0]->createDataSourceWidget() instead
*/
Q_DECL_DEPRECATED QWidget *createSelectionWidget( const QString &providerKey, QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags(), QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::None ) SIP_DEPRECATED;

Expand Down

0 comments on commit 21f39d1

Please sign in to comment.