Class: QgsVectorLayerUndoCommandChangeAttribute

class qgis.core.QgsVectorLayerUndoCommandChangeAttribute(buffer: QgsVectorLayerEditBuffer, fid: int, fieldIndex: int, newValue: Any, oldValue: Any)

Bases: QgsVectorLayerUndoCommand

Constructor for QgsVectorLayerUndoCommandChangeAttribute

Parameters
  • buffer (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

Undo command for modifying an attribute of a feature from a vector layer.

Methods

redo

undo

redo(self)
undo(self)