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()
QgsDataItemGuiProviderRegistry()
void initializeFromProviderGuiRegistry(QgsProviderGuiRegistry *providerGuiRegistry)
Initializes the registry.
void removeProvider(QgsDataItemGuiProvider *provider)
Removes a provider implementation from the registry.
void addProvider(QgsDataItemGuiProvider *provider)
Adds a provider implementation to the registry.
Abstract base class for providers which affect how QgsDataItem items behave within the application GU...
A registry / canonical manager of GUI parts of data providers.
virtual const QList< QgsDataItemGuiProvider * > dataItemGuiProviders(const QString &providerKey)
Returns all data item gui providers registered in provider with providerKey.
QStringList providerList() const
Returns list of available providers by their keys.