26 qDeleteAll( mProviders );
31 mProviders.append( provider );
36 int index = mProviders.indexOf( provider );
38 delete mProviders.takeAt( index );
43 if ( !providerGuiRegistry )
46 const QStringList providersList = providerGuiRegistry->
providerList();
48 for (
const QString &key : providersList )
50 const QList<QgsDataItemGuiProvider *> providerList = providerGuiRegistry->
dataItemGuiProviders( key );
52 mProviders << providerList;
~QgsDataItemGuiProviderRegistry()
void removeProvider(QgsDataItemGuiProvider *provider)
Removes a provider implementation from the registry.
void initializeFromProviderGuiRegistry(QgsProviderGuiRegistry *providerGuiRegistry)
Initializes the registry.
virtual const QList< QgsDataItemGuiProvider * > dataItemGuiProviders(const QString &providerKey)
Returns all data item gui providers registered in provider with providerKey.
Abstract base class for providers which affect how QgsDataItem items behave within the application GU...
QStringList providerList() const
Returns list of available providers by their keys.
QgsDataItemGuiProviderRegistry()
void addProvider(QgsDataItemGuiProvider *provider)
Adds a provider implementation to the registry.
A registry / canonical manager of GUI parts of data providers.