@@ -45,10 +45,10 @@ class ProcessingAlgorithm : public QObject
4545
4646 Q_PROPERTY ( QVariantMap parameters READ parameters WRITE setParameters NOTIFY parametersChanged )
4747 Q_PROPERTY ( QgsVectorLayer *inPlaceLayer READ inPlaceLayer WRITE setInPlaceLayer NOTIFY inPlaceLayerChanged )
48- Q_PROPERTY ( QVariantList inPlaceFeatures READ inPlaceFeaturesVariant WRITE setInPlaceFeaturesVariant NOTIFY inPlaceFeaturesChanged )
48+ Q_PROPERTY ( QList<QgsFeature> inPlaceFeatures READ inPlaceFeatures WRITE setInPlaceFeatures NOTIFY inPlaceFeaturesChanged )
4949
5050 Q_PROPERTY ( bool preview READ preview WRITE setPreview NOTIFY previewChanged )
51- Q_PROPERTY ( QVariantList previewGeometries READ previewGeometries NOTIFY previewGeometriesChanged )
51+ Q_PROPERTY ( QList<QgsGeometry> previewGeometries READ previewGeometries NOTIFY previewGeometriesChanged )
5252
5353 public:
5454 explicit ProcessingAlgorithm ( QObject *parent = nullptr );
@@ -98,16 +98,6 @@ class ProcessingAlgorithm : public QObject
9898 */
9999 void setInPlaceFeatures ( const QList<QgsFeature> &features );
100100
101- /* *
102- * Returns the vector \a layer for in-place algorithm filter as a QVariantList.
103- */
104- QVariantList inPlaceFeaturesVariant () const ;
105-
106- /* *
107- * Sets the vector \a layer for in-place algorithm filter from a QVariantList.
108- */
109- void setInPlaceFeaturesVariant ( const QVariantList &features );
110-
111101 /* *
112102 * Returns the algorithm parameters as a map of parameter names as keys and values.
113103 */
@@ -133,7 +123,7 @@ class ProcessingAlgorithm : public QObject
133123 /* *
134124 * Returns a list of geometries previewing the algorithm result using current parameters.
135125 */
136- QVariantList previewGeometries () const { return mPreviewGeometries ; }
126+ QList<QgsGeometry> previewGeometries () const { return mPreviewGeometries ; }
137127
138128 /* *
139129 * Executes the algorithm.
@@ -180,7 +170,7 @@ class ProcessingAlgorithm : public QObject
180170 QList<QgsFeature> mInPlaceFeatures ;
181171
182172 bool mPreview = false ;
183- QVariantList mPreviewGeometries ;
173+ QList<QgsGeometry> mPreviewGeometries ;
184174};
185175
186176#endif // PROCESSINGALGORITHM
0 commit comments