Fix deprecated method redirection

This commit is contained in:
Harrissou Sant-anna 2020-03-04 06:58:32 +01:00 committed by Nyall Dawson
parent c72e003aab
commit 21f39d127e
2 changed files with 2 additions and 2 deletions

View File

@ -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/;

View File

@ -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;