Class: QgsVectorLayerUndoCommandRenameAttribute¶
Undo command for renaming an existing attribute of a vector layer.
Class Hierarchy¶
Base classes¶
Base class for undo commands within a |
|
- class qgis.core.QgsVectorLayerUndoCommandRenameAttribute[source]¶
Bases:
QgsVectorLayerUndoCommand
- __init__(buffer: QgsVectorLayerEditBuffer | None, fieldIndex: int, newName: str | None)
Constructor for QgsVectorLayerUndoCommandRenameAttribute
- Parameters:
buffer (Optional[QgsVectorLayerEditBuffer]) – associated edit buffer
fieldIndex (int) – index of field to rename
newName (Optional[str]) – new name for field