Skip to content

Commit

Permalink
Fix corresponding dox and update debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Mar 17, 2020
1 parent f8bedd8 commit 50c4efb
Show file tree
Hide file tree
Showing 3 changed files with 3 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()->sourceSelectProviders(providerKey)[0]->createDataSourceWidget() instead
QGIS 3.10 - use QgsGui.sourceSelectProviderRegistry()->createDataSourceWidget() instead
%End

QList< QgsDataItemProvider * > dataItemProviders( const QString &providerKey ) const /Factory/;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsproviderregistry.cpp
Expand Up @@ -576,7 +576,7 @@ QWidget *QgsProviderRegistry::createSelectionWidget( const QString &providerKey,
Q_UNUSED( parent );
Q_UNUSED( fl );
Q_UNUSED( widgetMode );
QgsDebugMsg( "deprecated call - use QgsGui::providerGuiRegistry()->sourceSelectProviders(providerKey)[0]->createDataSourceWidget() instead" );
QgsDebugMsg( "deprecated call - use QgsGui::sourceSelectProviderRegistry()->createDataSourceWidget() instead" );
return nullptr;
}

Expand Down
1 change: 1 addition & 0 deletions src/core/qgsproviderregistry.h
Expand Up @@ -436,3 +436,4 @@ class CORE_EXPORT QgsProviderRegistry
}; // class QgsProviderRegistry

#endif //QGSPROVIDERREGISTRY_H

0 comments on commit 50c4efb

Please sign in to comment.