QGIS API Documentation 3.35.0-Master (f6e073f0eed)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsVectorLayerUndoCommandDeleteFeature Class Reference

Undo command for deleting a feature from a vector layer. More...

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommandDeleteFeature:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorLayerUndoCommandDeleteFeature (QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid)
 Constructor for QgsVectorLayerUndoCommandDeleteFeature.
 
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 deleting a feature from a vector layer.

Definition at line 95 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerUndoCommandDeleteFeature()

QgsVectorLayerUndoCommandDeleteFeature::QgsVectorLayerUndoCommandDeleteFeature ( QgsVectorLayerEditBuffer buffer,
QgsFeatureId  fid 
)

Constructor for QgsVectorLayerUndoCommandDeleteFeature.

Parameters
bufferassociated edit buffer
fidfeature ID of feature to delete from layer

Definition at line 65 of file qgsvectorlayerundocommand.cpp.

Member Function Documentation

◆ redo()

void QgsVectorLayerUndoCommandDeleteFeature::redo ( )
override

Definition at line 92 of file qgsvectorlayerundocommand.cpp.

◆ undo()

void QgsVectorLayerUndoCommandDeleteFeature::undo ( )
override

Definition at line 78 of file qgsvectorlayerundocommand.cpp.


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