QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
|
RAII class to restore layer configuration on destruction (opacity, filters, ...) More...
#include <qgslayerrestorer.h>
Public Member Functions | |
QgsLayerRestorer (const QList< QgsMapLayer *> &layers) | |
Constructor for QgsLayerRestorer. More... | |
~QgsLayerRestorer () | |
Destructor. More... | |
RAII class to restore layer configuration on destruction (opacity, filters, ...)
Definition at line 35 of file qgslayerrestorer.h.
QgsLayerRestorer::QgsLayerRestorer | ( | const QList< QgsMapLayer *> & | layers | ) |
Constructor for QgsLayerRestorer.
layers | List of layers to restore in their initial states |
Definition at line 25 of file qgslayerrestorer.cpp.
QgsLayerRestorer::~QgsLayerRestorer | ( | ) |
Destructor.
Restores layers in their initial states.
Definition at line 77 of file qgslayerrestorer.cpp.