QGIS API Documentation  2.99.0-Master (b2587b7)
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

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from QgsVectorLayerUndoCommand
 Associated edit buffer. More...

Detailed Description

Undo command for deleting a feature from a vector layer.

Definition at line 92 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

§ QgsVectorLayerUndoCommandDeleteFeature()

QgsVectorLayerUndoCommandDeleteFeature::QgsVectorLayerUndoCommandDeleteFeature ( QgsVectorLayerEditBuffer buffer,
QgsFeatureId  fid 

Constructor for QgsVectorLayerUndoCommandDeleteFeature.

bufferassociated edit buffer
fidfeature ID of feature to delete from layer

Definition at line 72 of file qgsvectorlayerundocommand.cpp.

Member Function Documentation

§ redo()

void QgsVectorLayerUndoCommandDeleteFeature::redo ( )

Definition at line 99 of file qgsvectorlayerundocommand.cpp.

§ undo()

void QgsVectorLayerUndoCommandDeleteFeature::undo ( )

Definition at line 85 of file qgsvectorlayerundocommand.cpp.

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