Class: QgsVectorLayerUndoCommandRenameAttribute

class qgis.core.QgsVectorLayerUndoCommandRenameAttribute(buffer: QgsVectorLayerEditBuffer, fieldIndex: int, newName: str)

Bases: qgis._core.QgsVectorLayerUndoCommand

Constructor for QgsVectorLayerUndoCommandRenameAttribute

Parameters:
  • buffer – associated edit buffer
  • fieldIndex – index of field to rename
  • newName – new name for field

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

New in version 2.16: Methods

redo
undo

Signals

Attributes

redo(self)
undo(self)