Class: QgsVectorLayerUndoPassthroughCommandChangeAttribute

class qgis.core.QgsVectorLayerUndoPassthroughCommandChangeAttribute(buffer: QgsVectorLayerEditBuffer, fid: int, field: int, newValue: Any)

Bases: QgsVectorLayerUndoPassthroughCommand

Constructor for QgsVectorLayerUndoPassthroughCommandChangeAttribute

Parameters
  • buffer (QgsVectorLayerEditBuffer) – associated edit buffer

  • fid (int) – feature ID of feature

  • field (int) –

  • newValue (Any) –

Undo command for changing attr value from a vector layer in transaction group.

errorMessage()
redo(self)
rollBackToSavePoint()
setError()
setErrorMessage()
setSavePoint()
undo(self)