Skip to content
Permalink
Browse files
Don't add ouputs to input parameters
  • Loading branch information
pathmapper authored and nyalldawson committed Sep 6, 2021
1 parent ae2c83d commit dcef058ac13043c4d2419b92a3ac8da3193fb80f
@@ -89,6 +89,9 @@ def getHtml(self):
s += '<p>' + self.getDescription(self.ALG_DESC) + '</p>\n'
s += self.tr('<h2>Input parameters</h2>\n')
for param in self.alg.parameterDefinitions():
if param.flags() & QgsProcessingParameterDefinition.FlagHidden or param.isDestination():
continue

s += '<h3>' + param.description() + '</h3>\n'
s += '<p>' + self.getDescription(param.name()) + '</p>\n'
s += self.tr('<h2>Outputs</h2>\n')
@@ -1042,10 +1042,12 @@ QString QgsProcessingUtils::formatHelpMapAsHtml( const QVariantMap &map, const Q
s += QStringLiteral( "<p>" ) + getText( QStringLiteral( "ALG_DESC" ) ) + QStringLiteral( "</p>\n" );

QString inputs;

const auto parameterDefinitions = algorithm->parameterDefinitions();
for ( const QgsProcessingParameterDefinition *def : parameterDefinitions )
{
if ( def->flags() & QgsProcessingParameterDefinition::FlagHidden || def->isDestination() )
continue;

inputs += QStringLiteral( "<h3>" ) + def->description() + QStringLiteral( "</h3>\n" );
inputs += QStringLiteral( "<p>" ) + getText( def->name() ) + QStringLiteral( "</p>\n" );
}

0 comments on commit dcef058

Please sign in to comment.