Subgroup: Vector

Class: QgsVectorLayerUndoCommand

class qgis.core.QgsVectorLayerUndoCommand

Bases: PyQt5.QtWidgets.QUndoCommand

Base class for undo commands within a QgsVectorLayerEditBuffer.

Methods

actionText
child
childCount
id
isObsolete
layer Returns the layer associated with the undo command
mergeWith
redo
setObsolete
setText
text
undo

Attributes

id(self) → int
layer(self) → QgsVectorLayer

Returns the layer associated with the undo command

mergeWith(self, QUndoCommand) → bool