QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
QgsVectorLayerUndoCommand Class Reference

Base class for undo commands within a QgsVectorLayerEditBuffer. More...

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommand:

Public Member Functions

 QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer)
 Constructor for QgsVectorLayerUndoCommand.
int id () const override
QgsVectorLayerlayer ()
 Returns the layer associated with the undo command.
bool mergeWith (const QUndoCommand *) override

Protected Attributes

QgsVectorLayerEditBuffermBuffer = nullptr
 Associated edit buffer.

Detailed Description

Base class for undo commands within a QgsVectorLayerEditBuffer.

Definition at line 39 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerUndoCommand()

QgsVectorLayerUndoCommand::QgsVectorLayerUndoCommand ( QgsVectorLayerEditBuffer * buffer)
inline

Constructor for QgsVectorLayerUndoCommand.

Parameters
bufferassociated edit buffer

Definition at line 47 of file qgsvectorlayerundocommand.h.

Member Function Documentation

◆ id()

int QgsVectorLayerUndoCommand::id ( ) const
inlineoverride

Definition at line 54 of file qgsvectorlayerundocommand.h.

◆ layer()

QgsVectorLayer * QgsVectorLayerUndoCommand::layer ( )
inline

Returns the layer associated with the undo command.

Definition at line 52 of file qgsvectorlayerundocommand.h.

◆ mergeWith()

bool QgsVectorLayerUndoCommand::mergeWith ( const QUndoCommand * )
inlineoverride

Definition at line 55 of file qgsvectorlayerundocommand.h.

Member Data Documentation

◆ mBuffer

QgsVectorLayerEditBuffer* QgsVectorLayerUndoCommand::mBuffer = nullptr
protected

Associated edit buffer.

Definition at line 59 of file qgsvectorlayerundocommand.h.


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