Subgroup: Vector
Class: QgsVectorLayerUndoCommandChangeAttribute¶
-
class
qgis.core.
QgsVectorLayerUndoCommandChangeAttribute
(buffer: QgsVectorLayerEditBuffer, fid: int, fieldIndex: int, newValue: Any, oldValue: Any)¶ Bases:
qgis._core.QgsVectorLayerUndoCommand
Constructor for QgsVectorLayerUndoCommandChangeAttribute
Parameters: - buffer – associated edit buffer
- fid – feature ID of feature to modify
- fieldIndex – index of field to modify
- newValue – new value of attribute
- oldValue – previous value of attribute
Undo command for modifying an attribute of a feature from a vector layer.
-
redo
(self)¶
-
undo
(self)¶