@@ -84,8 +84,8 @@ class CORE_EXPORT QgsProcessingParameterDefinition
8484 sipType = sipType_QgsProcessingParameterTable;
8585 else if ( sipCpp->type () == "field" )
8686 sipType = sipType_QgsProcessingParameterTableField;
87- else if ( sipCpp->type () == "vector " )
88- sipType = sipType_QgsProcessingParameterVectorLayer ;
87+ else if ( sipCpp->type () == "source " )
88+ sipType = sipType_QgsProcessingParameterFeatureSource ;
8989 else if ( sipCpp->type () == "vectorOut" )
9090 sipType = sipType_QgsProcessingParameterOutputVectorLayer;
9191 SIP_END
@@ -1008,33 +1008,33 @@ class CORE_EXPORT QgsProcessingParameterTableField : public QgsProcessingParamet
10081008};
10091009
10101010/* *
1011- * \class QgsProcessingParameterVectorLayer
1011+ * \class QgsProcessingParameterFeatureSource
10121012 * \ingroup core
1013- * A vector layer parameter for processing algorithms.
1013+ * An input feature source (such as vector layers) parameter for processing algorithms.
10141014 * \since QGIS 3.0
10151015 */
1016- class CORE_EXPORT QgsProcessingParameterVectorLayer : public QgsProcessingParameterDefinition
1016+ class CORE_EXPORT QgsProcessingParameterFeatureSource : public QgsProcessingParameterDefinition
10171017{
10181018 public:
10191019
10201020 /* *
1021- * Constructor for QgsProcessingParameterVectorLayer .
1021+ * Constructor for QgsProcessingParameterFeatureSource .
10221022 */
1023- QgsProcessingParameterVectorLayer ( const QString &name, const QString &description = QString(),
1024- const QList< int > &types = QList< int >(),
1025- const QVariant &defaultValue = QVariant(), bool optional = false );
1023+ QgsProcessingParameterFeatureSource ( const QString &name, const QString &description = QString(),
1024+ const QList< int > &types = QList< int >(),
1025+ const QVariant &defaultValue = QVariant(), bool optional = false );
10261026
1027- QString type () const override { return QStringLiteral ( " vector " ); }
1027+ QString type () const override { return QStringLiteral ( " source " ); }
10281028 bool checkValueIsAcceptable ( const QVariant &input, QgsProcessingContext *context = nullptr ) const override ;
10291029
10301030 /* *
1031- * Returns the layer types for layers acceptable by the parameter.
1031+ * Returns the geometry types for sources acceptable by the parameter.
10321032 * \see setDataTypes()
10331033 */
10341034 QList< int > dataTypes () const ;
10351035
10361036 /* *
1037- * Sets the layer \a types for layers acceptable by the parameter.
1037+ * Sets the geometry \a types for sources acceptable by the parameter.
10381038 * \see dataTypes()
10391039 */
10401040 void setDataTypes ( const QList< int > &types );
0 commit comments