Class: QgsVectorLayerUndoCommandChangeAttribute

class qgis.core.QgsVectorLayerUndoCommandChangeAttribute

Bases: QgsVectorLayerUndoCommand

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

QgsVectorLayerUndoCommandChangeAttribute(buffer: QgsVectorLayerEditBuffer, fid: int, fieldIndex: int, newValue: Any, oldValue: Any) 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

    Methods

    redo

    undo

redo(self)
undo(self)