Skip to content
Permalink
Browse files

Fix deprecated method redirection

  • Loading branch information
DelazJ authored and nyalldawson committed Mar 4, 2020
1 parent c72e003 commit 21f39d127e7b62cc1b555780e5bc2ed852c79b8a
Showing with 2 additions and 2 deletions.
  1. +1 −1 python/core/auto_generated/qgsproviderregistry.sip.in
  2. +1 −1 src/core/qgsproviderregistry.h
@@ -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/;
@@ -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;

0 comments on commit 21f39d1

Please sign in to comment.
You can’t perform that action at this time.