QGIS API Documentation
3.6.0-Noosa (5873452)
|
Restore overridden layer style on destruction. More...
#include <qgsmaplayerstyle.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 79 of file qgsmaplayerstyle.h.
|
inline |
Construct a style override object associated with a map layer.
The overridden style will be restored upon object destruction.
Definition at line 87 of file qgsmaplayerstyle.h.
QgsMapLayerStyleOverride::~QgsMapLayerStyleOverride | ( | ) |
Definition at line 104 of file qgsmaplayerstyle.cpp.
void QgsMapLayerStyleOverride::setOverrideStyle | ( | const QString & | style | ) |
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 110 of file qgsmaplayerstyle.cpp.