Skip to content

Commit

Permalink
Only expose supported parameters to modeler
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 6, 2018
1 parent c3a8436 commit a61efdd
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/core/processing/qgsprocessingparametertypeimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,15 @@ class CORE_EXPORT QgsProcessingParameterTypeVectorDestination : public QgsProces
{
return QStringLiteral( "vectorDestination" );
}

virtual ParameterFlags flags() const override
{
ParameterFlags flags = QgsProcessingParameterType::flags();

flags.setFlag( ParameterFlag::ExposeToModeler, false );

return flags;
}
};

/**
Expand Down Expand Up @@ -421,6 +430,15 @@ class CORE_EXPORT QgsProcessingParameterTypeFileDestination : public QgsProcessi
{
return QStringLiteral( "fileDestination" );
}

virtual ParameterFlags flags() const override
{
ParameterFlags flags = QgsProcessingParameterType::flags();

flags.setFlag( ParameterFlag::ExposeToModeler, false );

return flags;
}
};

/**
Expand Down Expand Up @@ -455,6 +473,15 @@ class CORE_EXPORT QgsProcessingParameterTypeFolderDestination : public QgsProces
{
return QStringLiteral( "folderDestination" );
}

virtual ParameterFlags flags() const override
{
ParameterFlags flags = QgsProcessingParameterType::flags();

flags.setFlag( ParameterFlag::ExposeToModeler, false );

return flags;
}
};

/**
Expand Down Expand Up @@ -488,6 +515,15 @@ class CORE_EXPORT QgsProcessingParameterTypeRasterDestination : public QgsProces
{
return QStringLiteral( "rasterDestination" );
}

virtual ParameterFlags flags() const override
{
ParameterFlags flags = QgsProcessingParameterType::flags();

flags.setFlag( ParameterFlag::ExposeToModeler, false );

return flags;
}
};

/**
Expand Down

0 comments on commit a61efdd

Please sign in to comment.