QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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;
Abstract base class for providers which affect how QgsDataItem items behave within the application GU...
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.
void addProvider(QgsDataItemGuiProvider *provider)
Adds a provider implementation to the registry.
A registry / canonical manager of GUI parts of data providers.
QgsDataItemGuiProviderRegistry()
~QgsDataItemGuiProviderRegistry()
QStringList providerList() const
Returns list of available providers by their keys.