QGIS API Documentation  2.18.3-Las Palmas (77b8c3d)
Public Member Functions | List of all members
QgsVectorLayerUndoCommandRenameAttribute Class Reference

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

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommandRenameAttribute:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorLayerUndoCommandRenameAttribute (QgsVectorLayerEditBuffer *buffer, int fieldIndex, const QString &newName)
 Constructor for QgsVectorLayerUndoCommandRenameAttribute. More...
 
virtual void redo () override
 
virtual void undo () override
 
- Public Member Functions inherited from QgsVectorLayerUndoCommand
 QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer)
 Constructor for QgsVectorLayerUndoCommand. More...
 
QgsGeometryCachecache ()
 
virtual int id () const override
 
QgsVectorLayerlayer ()
 Returns the layer associated with the undo command. More...
 
virtual bool mergeWith (const QUndoCommand *) override
 
- Public Member Functions inherited from QUndoCommand
 QUndoCommand (QUndoCommand *parent)
 
 QUndoCommand (const QString &text, QUndoCommand *parent)
 
virtual  ~QUndoCommand ()
 
QString actionText () const
 
const QUndoCommandchild (int index) const
 
int childCount () const
 
void setText (const QString &text)
 
QString text () const
 

Additional Inherited Members

- Protected Attributes inherited from QgsVectorLayerUndoCommand
QgsVectorLayerEditBuffermBuffer
 Associated edit buffer. More...
 

Detailed Description

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

Note
added in QGIS 2.16

Definition at line 226 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

QgsVectorLayerUndoCommandRenameAttribute::QgsVectorLayerUndoCommandRenameAttribute ( QgsVectorLayerEditBuffer buffer,
int  fieldIndex,
const QString newName 
)

Constructor for QgsVectorLayerUndoCommandRenameAttribute.

Parameters
bufferassociated edit buffer
fieldIndexindex of field to rename
newNamenew name for field

Definition at line 441 of file qgsvectorlayerundocommand.cpp.

Member Function Documentation

void QgsVectorLayerUndoCommandRenameAttribute::redo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 456 of file qgsvectorlayerundocommand.cpp.

void QgsVectorLayerUndoCommandRenameAttribute::undo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 449 of file qgsvectorlayerundocommand.cpp.


The documentation for this class was generated from the following files: