Class: QgsVectorLayerUndoCommandAddAttribute¶
- class qgis.core.QgsVectorLayerUndoCommandAddAttribute(buffer: QgsVectorLayerEditBuffer, field: QgsField)¶
Bases:
QgsVectorLayerUndoCommand
Constructor for QgsVectorLayerUndoCommandAddAttribute
- Parameters
buffer – associated edit buffer
field – definition of new field to add
Undo command for adding a new attribute to a vector layer.
- redo(self)¶
- undo(self)¶