| QGIS API Documentation
    3.22.4-Białowieża (ce8e65e95e)
    | 
Undo command for adding a new attribute to a vector layer. More...
#include <qgsvectorlayerundocommand.h>

| Public Member Functions | |
| QgsVectorLayerUndoCommandAddAttribute (QgsVectorLayerEditBuffer *buffer, const QgsField &field) | |
| Constructor for QgsVectorLayerUndoCommandAddAttribute.  More... | |
| void | redo () override | 
| void | undo () override | 
|  Public Member Functions inherited from QgsVectorLayerUndoCommand | |
| QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer) | |
| Constructor for QgsVectorLayerUndoCommand.  More... | |
| int | id () const override | 
| QgsVectorLayer * | layer () | 
| Returns the layer associated with the undo command.  More... | |
| bool | mergeWith (const QUndoCommand *) override | 
| Additional Inherited Members | |
|  Protected Attributes inherited from QgsVectorLayerUndoCommand | |
| QgsVectorLayerEditBuffer * | mBuffer = nullptr | 
| Associated edit buffer.  More... | |
Undo command for adding a new attribute to a vector layer.
Definition at line 180 of file qgsvectorlayerundocommand.h.
| QgsVectorLayerUndoCommandAddAttribute::QgsVectorLayerUndoCommandAddAttribute | ( | QgsVectorLayerEditBuffer * | buffer, | 
| const QgsField & | field | ||
| ) | 
Constructor for QgsVectorLayerUndoCommandAddAttribute.
| buffer | associated edit buffer | 
| field | definition of new field to add | 
Definition at line 286 of file qgsvectorlayerundocommand.cpp.
| 
 | override | 
Definition at line 308 of file qgsvectorlayerundocommand.cpp.
| 
 | override | 
Definition at line 297 of file qgsvectorlayerundocommand.cpp.