QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Public Member Functions | List of all members
QgsVectorLayerUndoCommandDeleteAttribute Class Reference

Undo command for removing an existing attribute from a vector layer. More...

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommandDeleteAttribute:
Inheritance graph

Public Member Functions

 QgsVectorLayerUndoCommandDeleteAttribute (QgsVectorLayerEditBuffer *buffer, int fieldIndex)
 Constructor for QgsVectorLayerUndoCommandDeleteAttribute. More...
void redo () override
void undo () override
- Public Member Functions inherited from QgsVectorLayerUndoCommand
 QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer)
 Constructor for QgsVectorLayerUndoCommand. More...
int id () const override
QgsVectorLayerlayer ()
 Returns the layer associated with the undo command. More...
bool mergeWith (const QUndoCommand *) override

Additional Inherited Members

- Protected Attributes inherited from QgsVectorLayerUndoCommand
QgsVectorLayerEditBuffermBuffer = nullptr
 Associated edit buffer. More...

Detailed Description

Undo command for removing an existing attribute from a vector layer.

Definition at line 205 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerUndoCommandDeleteAttribute()

QgsVectorLayerUndoCommandDeleteAttribute::QgsVectorLayerUndoCommandDeleteAttribute ( QgsVectorLayerEditBuffer buffer,
int  fieldIndex 

Constructor for QgsVectorLayerUndoCommandDeleteAttribute.

bufferassociated edit buffer
fieldIndexindex of field to delete

Definition at line 321 of file qgsvectorlayerundocommand.cpp.

Member Function Documentation

◆ redo()

void QgsVectorLayerUndoCommandDeleteAttribute::redo ( )

Definition at line 401 of file qgsvectorlayerundocommand.cpp.

◆ undo()

void QgsVectorLayerUndoCommandDeleteAttribute::undo ( )

Definition at line 358 of file qgsvectorlayerundocommand.cpp.

The documentation for this class was generated from the following files: