Class: QgsVectorLayerUndoCommandAddAttribute

class qgis.core.QgsVectorLayerUndoCommandAddAttribute

Bases: QgsVectorLayerUndoCommand

Undo command for adding a new attribute to a vector layer.

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

Parameters:
  • buffer – associated edit buffer

  • field

    definition of new field to add

    Methods

    redo

    undo

redo(self)
undo(self)