Class: QgsVectorLayerUndoCommandChangeAttribute¶
Undo command for modifying an attribute of a feature from a vector layer.
Class Hierarchy¶
Base classes¶
Base class for undo commands within a |
|
- class qgis.core.QgsVectorLayerUndoCommandChangeAttribute[source]¶
Bases:
QgsVectorLayerUndoCommand
- __init__(buffer: QgsVectorLayerEditBuffer | None, fid: int, fieldIndex: int, newValue: Any, oldValue: Any)
Constructor for QgsVectorLayerUndoCommandChangeAttribute
- Parameters:
buffer (Optional[QgsVectorLayerEditBuffer]) – associated edit buffer
fid (int) – feature ID of feature to modify
fieldIndex (int) – index of field to modify
newValue (Any) – new value of attribute
oldValue (Any) – previous value of attribute