27 qDeleteAll( mProviders );
37 mProviders.append( provider );
42 int index = mProviders.indexOf( provider );
45 delete mProviders.takeAt( index );
54 if ( !providerGuiRegistry )
57 const QStringList providersList = providerGuiRegistry->
providerList();
58 for (
const QString &key : providersList )
60 const QList<QgsProviderSourceWidgetProvider *> providerList = providerGuiRegistry->
sourceWidgetProviders( key );
71 const QList<QgsProviderSourceWidgetProvider *> providerList =
providers();
74 if ( provider->name() == name )
84 QList<QgsProviderSourceWidgetProvider *> result;
85 const QList<QgsProviderSourceWidgetProvider *> providerList =
providers();
88 if ( provider->providerKey() == providerKey )
98 const QList<QgsProviderSourceWidgetProvider *> providerList =
providers();
102 if ( provider->canHandleLayer( layer ) )
104 return provider->createWidget( layer, parent );
Base class for all map layer types.
A registry / canonical manager of GUI parts of data providers.
virtual QList< QgsProviderSourceWidgetProvider * > sourceWidgetProviders(const QString &providerKey)
Returns all source widget providers registered in provider with providerKey.
QStringList providerList() const
Returns list of available providers by their keys.