QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Classes | Public Member Functions | List of all members
QgsLayerRestorer Class Reference

#include <qgswmsrestorer.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, ...)

QGIS 3.0

Definition at line 36 of file qgswmsrestorer.h.

Constructor & Destructor Documentation

◆ QgsLayerRestorer()

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

Constructor for QgsLayerRestorer.

layersList of layers to restore in their initial states

Definition at line 27 of file qgswmsrestorer.cpp.

◆ ~QgsLayerRestorer()

QgsLayerRestorer::~QgsLayerRestorer ( )


Restores layers in their initial states.

Definition at line 85 of file qgswmsrestorer.cpp.

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