QGIS API Documentation
3.2.0-Bonn (bc43194)
|
Restore overridden layer style on destruction. More...
#include <qgsmaplayerstylemanager.h>
Public Member Functions | |
QgsMapLayerStyleOverride (QgsMapLayer *layer) | |
Construct a style override object associated with a map layer. More... | |
~QgsMapLayerStyleOverride () | |
void | setOverrideStyle (const QString &style) |
Temporarily apply a different style to the layer. More... | |
Restore overridden layer style on destruction.
Definition at line 204 of file qgsmaplayerstylemanager.h.
|
inline |
Construct a style override object associated with a map layer.
The overridden style will be restored upon object destruction.
Definition at line 212 of file qgsmaplayerstylemanager.h.
|
inline |
Definition at line 217 of file qgsmaplayerstylemanager.h.
|
inline |
Temporarily apply a different style to the layer.
The argument can be either a style name or a full QML style definition.
Definition at line 227 of file qgsmaplayerstylemanager.h.