QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsVectorLayerUndoCommandAddAttribute Class Reference

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

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommandAddAttribute:

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 179 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerUndoCommandAddAttribute()

QgsVectorLayerUndoCommandAddAttribute::QgsVectorLayerUndoCommandAddAttribute ( QgsVectorLayerEditBuffer * buffer,
const QgsField & field )

Constructor for QgsVectorLayerUndoCommandAddAttribute.

Parameters
bufferassociated edit buffer
fielddefinition of new field to add

Definition at line 309 of file qgsvectorlayerundocommand.cpp.

Member Function Documentation

◆ redo()

void QgsVectorLayerUndoCommandAddAttribute::redo ( )
override

Definition at line 331 of file qgsvectorlayerundocommand.cpp.

◆ undo()

void QgsVectorLayerUndoCommandAddAttribute::undo ( )
override

Definition at line 320 of file qgsvectorlayerundocommand.cpp.


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