File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -124,13 +124,20 @@ class GRASS_LIB_EXPORT QgsGrassProvider : public QgsVectorDataProvider
124124
125125 QgsCoordinateReferenceSystem crs () override ;
126126
127+ // ----------------------------------- New edit --------------------------------
128+ // Changes are written during editing.
129+ // TODO: implement also these functions but disable during manual layer editing
130+ virtual bool addFeatures ( QgsFeatureList & flist ) override { Q_UNUSED ( flist ); return true ; }
131+ virtual bool deleteFeatures ( const QgsFeatureIds & id ) override { Q_UNUSED ( id ); return true ; }
132+ virtual bool addAttributes ( const QList<QgsField> &attributes ) override { Q_UNUSED ( attributes ); return true ; }
133+ virtual bool deleteAttributes ( const QgsAttributeIds &attributes ) override { Q_UNUSED ( attributes ); return true ; }
134+ virtual bool changeAttributeValues ( const QgsChangedAttributesMap & attr_map ) override { Q_UNUSED ( attr_map ); return true ; }
135+ virtual bool changeGeometryValues ( QgsGeometryMap & geometry_map ) override { Q_UNUSED ( geometry_map ); return true ; }
136+
127137
128138 // ----------------------------------------------------------------------------
129139 QgsGrassObject grassObject () const { return mGrassObject ; }
130140
131- // ----------------------------------- New edit --------------------------------
132- bool changeGeometryValues ( QgsGeometryMap & geometry_map ) override { Q_UNUSED ( geometry_map ); return true ; }
133-
134141
135142 // ----------------------------------- Edit ----------------------------------
136143
You can’t perform that action at this time.
0 commit comments