Class: QgsVectorLayerUndoCommand¶
- class qgis.core.QgsVectorLayerUndoCommand¶
Bases:
PyQt5.QtWidgets.QUndoCommand
Base class for undo commands within a
QgsVectorLayerEditBuffer
.QgsVectorLayerUndoCommand(buffer:
QgsVectorLayerEditBuffer
) Constructor for QgsVectorLayerUndoCommand- Parameters:
buffer –
associated edit buffer
Methods
- rtype:
int
Returns the layer associated with the undo command
- rtype:
bool
- id(self) int ¶
- Return type:
int
- layer(self) QgsVectorLayer ¶
Returns the layer associated with the undo command
- Return type:
- mergeWith(self, QUndoCommand) bool ¶
- Return type:
bool