Skip to content

Commit

Permalink
Don't add ouputs to input parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmapper authored and nyalldawson committed Sep 6, 2021
1 parent ae2c83d commit dcef058
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions python/plugins/processing/gui/HelpEditionDialog.py
Expand Up @@ -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')
Expand Down
4 changes: 3 additions & 1 deletion src/core/processing/qgsprocessingutils.cpp
Expand Up @@ -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" );
}
Expand Down

0 comments on commit dcef058

Please sign in to comment.