|
QGIS API Documentation
3.6.0-Noosa (5873452)
|
Undo command for modifying an attribute of a feature from a vector layer. More...
#include <qgsvectorlayerundocommand.h>

Public Member Functions | |
| QgsVectorLayerUndoCommandChangeAttribute (QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid, int fieldIndex, const QVariant &newValue, const QVariant &oldValue) | |
| Constructor for QgsVectorLayerUndoCommandChangeAttribute. 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 modifying an attribute of a feature from a vector layer.
Definition at line 150 of file qgsvectorlayerundocommand.h.
| QgsVectorLayerUndoCommandChangeAttribute::QgsVectorLayerUndoCommandChangeAttribute | ( | QgsVectorLayerEditBuffer * | buffer, |
| QgsFeatureId | fid, | ||
| int | fieldIndex, | ||
| const QVariant & | newValue, | ||
| const QVariant & | oldValue | ||
| ) |
Constructor for QgsVectorLayerUndoCommandChangeAttribute.
| buffer | associated edit buffer |
| fid | feature ID of feature to modify |
| fieldIndex | index of field to modify |
| newValue | new value of attribute |
| oldValue | previous value of attribute |
Definition at line 199 of file qgsvectorlayerundocommand.cpp.
|
override |
Definition at line 265 of file qgsvectorlayerundocommand.cpp.
|
override |
Definition at line 226 of file qgsvectorlayerundocommand.cpp.
1.8.13