MapThemeLayerRecord class
Individual record of a visible layer in a map theme record.
Contents
Constructors, destructors, conversion operators
- MapThemeLayerRecord(QgsMapLayer* l = nullptr)
- Initialize layer record with a map layer - it will be stored as a weak pointer.
Public functions
- auto layer() const -> QgsMapLayer*
- Returns map layer or null if the layer does not exist anymore.
- void setLayer(QgsMapLayer* layer)
- Sets the map layer for this record.
Public variables
- QSet<QString> checkedLegendItems
- Rule keys of check legend items in layer tree model.
- QString currentStyle
- Name of the current style of the layer.
- bool expandedLayerNode
- Whether the layer's tree node is expanded (only to be applied if the parent MapThemeRecord has the information about expanded nodes stored)
- QSet<QString> expandedLegendItems
- Rule keys of expanded legend items in layer tree view.
- bool usingCurrentStyle
- Whether current style is valid and should be applied.
- bool usingLegendItems
- Whether checkedLegendItems should be applied.
Variable documentation
bool QgsMapThemeCollection:: MapThemeLayerRecord:: expandedLayerNode
Whether the layer's tree node is expanded (only to be applied if the parent MapThemeRecord has the information about expanded nodes stored)
QSet<QString> QgsMapThemeCollection:: MapThemeLayerRecord:: expandedLegendItems
Rule keys of expanded legend items in layer tree view.