QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
RAII class to restore layer configuration on destruction (opacity, filters, ...) More...
#include <qgswmsrestorer.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 36 of file qgswmsrestorer.h.
QgsLayerRestorer::QgsLayerRestorer | ( | const QList< QgsMapLayer * > & | layers | ) |
Constructor for QgsLayerRestorer.
layers | List of layers to restore in their initial states |
Definition at line 27 of file qgswmsrestorer.cpp.
QgsLayerRestorer::~QgsLayerRestorer | ( | ) |
Destructor.
Restores layers in their initial states.
Definition at line 73 of file qgswmsrestorer.cpp.