QgsVectorLayerUndoCommandChangeAttribute class

Undo command for modifying an attribute of a feature from a vector layer.

Base classes

class QgsVectorLayerUndoCommand
Base class for undo commands within a QgsVectorLayerEditBuffer.

Constructors, destructors, conversion operators

QgsVectorLayerUndoCommandChangeAttribute(QgsVectorLayerEditBuffer* buffer, QgsFeatureId fid, int fieldIndex, const QVariant& newValue, const QVariant& oldValue)
Constructor for QgsVectorLayerUndoCommandChangeAttribute.

Function documentation

QgsVectorLayerUndoCommandChangeAttribute::QgsVectorLayerUndoCommandChangeAttribute(QgsVectorLayerEditBuffer* buffer, QgsFeatureId fid, int fieldIndex, const QVariant& newValue, const QVariant& oldValue)

Constructor for QgsVectorLayerUndoCommandChangeAttribute.

Parameters
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