Skip to content
Permalink
Browse files

Only expose supported parameters to modeler

  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 6, 2018
1 parent c3a8436 commit a61efddc32b2ad6196bb538e858ba5256b4d8463
Showing with 36 additions and 0 deletions.
  1. +36 −0 src/core/processing/qgsprocessingparametertypeimpl.h
@@ -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;
}
};

/**
@@ -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;
}
};

/**
@@ -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;
}
};

/**
@@ -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;
}
};

/**

0 comments on commit a61efdd

Please sign in to comment.
You can’t perform that action at this time.