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