QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Undo command for adding a feature to a vector layer. More...
#include <qgsvectorlayerundocommand.h>
Public Member Functions | |
QgsVectorLayerUndoCommandAddFeature (QgsVectorLayerEditBuffer *buffer, QgsFeature &f) | |
Constructor for QgsVectorLayerUndoCommandAddFeature. 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 feature to a vector layer.
Definition at line 70 of file qgsvectorlayerundocommand.h.
QgsVectorLayerUndoCommandAddFeature::QgsVectorLayerUndoCommandAddFeature | ( | QgsVectorLayerEditBuffer * | buffer, |
QgsFeature & | f | ||
) |
Constructor for QgsVectorLayerUndoCommandAddFeature.
buffer | associated edit buffer |
f | feature to add to layer |
Definition at line 27 of file qgsvectorlayerundocommand.cpp.
|
override |
Definition at line 56 of file qgsvectorlayerundocommand.cpp.
|
override |
Definition at line 45 of file qgsvectorlayerundocommand.cpp.