161 const QVariantMap metadata = parameter->
metadata();
162 const QString widgetType = metadata.value( QStringLiteral(
"widget_wrapper" ) ).toMap().value( QStringLiteral(
"widget_type" ) ).toString();
163 const QString parameterType = !widgetType.isEmpty() ? widgetType : parameter->
type();
164 if ( !mParameterWidgetFactories.contains( parameterType ) )
167 return mParameterWidgetFactories.value( parameterType )->createWidgetWrapper( parameter, type );
Contains information about the context in which a processing algorithm is executed.
QgsProcessingAbstractParameterDefinitionWidget * createParameterDefinitionWidget(const QString &type, QgsProcessingContext &context, const QgsProcessingParameterWidgetContext &widgetContext, const QgsProcessingParameterDefinition *definition=nullptr, const QgsProcessingAlgorithm *algorithm=nullptr)
Creates a new parameter definition widget allowing for configuration of an instance of a specific par...
QgsProcessingModelerParameterWidget * createModelerParameterWidget(QgsProcessingModelAlgorithm *model, const QString &childId, const QgsProcessingParameterDefinition *parameter, QgsProcessingContext &context)
Creates a new modeler parameter widget for the given parameter.