Class: QgsVectorLayerUndoPassthroughCommandAddAttribute

class qgis.core.QgsVectorLayerUndoPassthroughCommandAddAttribute

Bases: QgsVectorLayerUndoPassthroughCommand

Undo command for adding attri to a vector layer in transaction group.

New in version 3.0.

QgsVectorLayerUndoPassthroughCommandAddAttribute(buffer: QgsVectorLayerEditBuffer, field: QgsField) Constructor for QgsVectorLayerUndoPassthroughCommandAddAttribute

Parameters
  • buffer – associated edit buffer

  • field

    Methods

    redo

    undo

redo(self)
undo(self)