QGIS API Documentation  3.8.0-Zanzibar (11aff65)
Classes | Public Member Functions | List of all members
QgsLayerRestorer Class Reference

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...
 

Detailed Description

RAII class to restore layer configuration on destruction (opacity, filters, ...)

Since
QGIS 3.0

Definition at line 35 of file qgslayerrestorer.h.

Constructor & Destructor Documentation

◆ QgsLayerRestorer()

QgsLayerRestorer::QgsLayerRestorer ( const QList< QgsMapLayer *> &  layers)

Constructor for QgsLayerRestorer.

Parameters
layersList of layers to restore in their initial states

Definition at line 25 of file qgslayerrestorer.cpp.

◆ ~QgsLayerRestorer()

QgsLayerRestorer::~QgsLayerRestorer ( )

Destructor.

Restores layers in their initial states.

Definition at line 77 of file qgslayerrestorer.cpp.


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