mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Only expose supported parameters to modeler
This commit is contained in:
parent
c3a843619f
commit
a61efddc32
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user