Class: QgsVectorLayerUndoCommand

class qgis.core.QgsVectorLayerUndoCommand

Bases: PyQt5.QtWidgets.QUndoCommand

Base class for undo commands within a QgsVectorLayerEditBuffer.

QgsVectorLayerUndoCommand(buffer: Optional[QgsVectorLayerEditBuffer]) Constructor for QgsVectorLayerUndoCommand

Parameters:

buffer

associated edit buffer

Methods

id

rtype:

int

layer

Returns the layer associated with the undo command

mergeWith

param a0:

id(self) int
Return type:

int

layer(self) QgsVectorLayer | None

Returns the layer associated with the undo command

Return type:

Optional[QgsVectorLayer]

mergeWith(self, a0: QUndoCommand | None) bool
Parameters:

a0 (Optional[QUndoCommand])

Return type:

bool