Update sip

This commit is contained in:
Nyall Dawson 2017-04-04 13:43:16 +10:00
parent ebd851993a
commit 1aa7ca3452
2 changed files with 5 additions and 2 deletions

View File

@ -105,8 +105,9 @@ class QgsProcessingProvider : QObject
%Docstring
Loads the provider. This will be called when the plugin is being loaded, and any general
setup actions should occur in an overridden version of this method.
Subclasses should not load any algorithms in their load() implementations, as that must
occur within the loadAlgorithms() method.
Subclasses should not individually load any algorithms in their load() implementations, as that must
occur within the loadAlgorithms() method. Instead, subclasses should call refreshAlgorithms()
from any overloaded load() method to trigger an initial load of the provider's algorithms.
\returns true if provider could be successfully loaded
\see unload()
%End

View File

@ -46,6 +46,8 @@ class QgsProcessingRegistry : QObject
and the provider's parent will be set to the registry.
Returns false if the provider could not be added (eg if a provider with a duplicate ID already exists
in the registry).
Adding a provider to the registry automatically triggers the providers QgsProcessingProvider::load()
method to populate the provider with algorithms.
\see removeProvider()
%End