Class: QgsVectorLayerUndoCommandRenameAttribute

Undo command for renaming an existing attribute of a vector layer.

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorLayerUndoCommandRenameAttribute

Base classes

QgsVectorLayerUndoCommand

Base class for undo commands within a QgsVectorLayerEditBuffer.

QUndoCommand

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