Class: QgsVectorLayerUndoCommandChangeAttribute

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

Bases: 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.

Methods

redo

undo

redo(self)
undo(self)