Class: QgsVectorLayerUndoPassthroughCommandChangeAttributes

Undo command for changing attributes’ values from a vector layer in a transaction group.

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorLayerUndoPassthroughCommandChangeAttributes

Base classes

QgsVectorLayerUndoPassthroughCommand

Undo command for vector layer in a transaction group mode.

QgsVectorLayerUndoCommand

Base class for undo commands within a QgsVectorLayerEditBuffer.

QUndoCommand

class qgis.core.QgsVectorLayerUndoPassthroughCommandChangeAttributes[source]

Bases: QgsVectorLayerUndoPassthroughCommand

__init__(buffer: QgsVectorLayerEditBuffer | None, fid: int, newValues: Dict[int, Any], oldValues: Dict[int, Any] = {})

Constructor for QgsVectorLayerUndoPassthroughCommandChangeAttributes

Parameters:
  • buffer (Optional[QgsVectorLayerEditBuffer]) – associated edit buffer

  • fid (int) – feature ID of feature

  • newValues (Dict[int, Any]) – New values for attributes

  • oldValues (Dict[int, Any] = {}) – Old values for attributes