Class: QgsVectorLayerUndoPassthroughCommandAddAttribute

class qgis.core.QgsVectorLayerUndoPassthroughCommandAddAttribute(buffer: QgsVectorLayerEditBuffer, field: QgsField)

Bases: qgis._core.QgsVectorLayerUndoPassthroughCommand

Constructor for QgsVectorLayerUndoPassthroughCommandAddAttribute

Parameters:
  • buffer – associated edit buffer
  • field

Undo command for adding attri to a vector layer in transaction group.

New in version 3.0: Methods

errorMessage
redo
rollBackToSavePoint
setError
setErrorMessage
setSavePoint
undo

Signals

Attributes

errorMessage()
redo(self)
rollBackToSavePoint()
setError()
setErrorMessage()
setSavePoint()
undo(self)