QGIS API Documentation
3.0.2-Girona (307d082)
|
Individual record of a visible layer in a map theme record. More...
#include <qgsmapthemecollection.h>
Public Member Functions | |
MapThemeLayerRecord (QgsMapLayer *l=nullptr) | |
Initialize layer record with a map layer - it will be stored as a weak pointer. More... | |
QgsMapLayer * | layer () const |
Returns map layer or null if the layer does not exist anymore. More... | |
bool | operator!= (const QgsMapThemeCollection::MapThemeLayerRecord &other) const |
bool | operator== (const QgsMapThemeCollection::MapThemeLayerRecord &other) const |
void | setLayer (QgsMapLayer *layer) |
Set the map layer for this record. More... | |
Public Attributes | |
QSet< QString > | checkedLegendItems |
Rule keys of check legend items in layer tree model. More... | |
QString | currentStyle |
Name of the current style of the layer. More... | |
bool | usingCurrentStyle = false |
Whether current style is valid and should be applied. More... | |
bool | usingLegendItems = false |
Whether checkedLegendItems should be applied. More... | |
Individual record of a visible layer in a map theme record.
Definition at line 58 of file qgsmapthemecollection.h.
|
inline |
Initialize layer record with a map layer - it will be stored as a weak pointer.
Definition at line 62 of file qgsmapthemecollection.h.
|
inline |
Returns map layer or null if the layer does not exist anymore.
Definition at line 76 of file qgsmapthemecollection.h.
|
inline |
Definition at line 70 of file qgsmapthemecollection.h.
|
inline |
Definition at line 64 of file qgsmapthemecollection.h.
void QgsMapThemeCollection::MapThemeLayerRecord::setLayer | ( | QgsMapLayer * | layer | ) |
Set the map layer for this record.
Definition at line 564 of file qgsmapthemecollection.cpp.
QSet<QString> QgsMapThemeCollection::MapThemeLayerRecord::checkedLegendItems |
Rule keys of check legend items in layer tree model.
Definition at line 88 of file qgsmapthemecollection.h.
QString QgsMapThemeCollection::MapThemeLayerRecord::currentStyle |
Name of the current style of the layer.
Definition at line 84 of file qgsmapthemecollection.h.
bool QgsMapThemeCollection::MapThemeLayerRecord::usingCurrentStyle = false |
Whether current style is valid and should be applied.
Definition at line 82 of file qgsmapthemecollection.h.
bool QgsMapThemeCollection::MapThemeLayerRecord::usingLegendItems = false |
Whether checkedLegendItems should be applied.
Definition at line 86 of file qgsmapthemecollection.h.