16 #ifndef QGSLEGENDSYMBOLITEMV2_H 17 #define QGSLEGENDSYMBOLITEMV2_H 23 #include "qgis_core.h" 49 QgsLegendSymbolItem(
QgsSymbol *symbol,
const QString &label,
const QString &ruleKey,
bool checkable =
false,
int scaleMinDenom = -1,
int scaleMaxDenom = -1,
int level = 0,
const QString &parentRuleKey = QString() );
58 QString
label()
const {
return mLabel; }
68 bool isScaleOK(
double scale )
const;
83 int level()
const {
return mLevel; }
117 bool mCheckable =
false;
119 QgsSymbol *mOriginalSymbolPointer =
nullptr;
129 int mScaleMinDenom = -1;
130 int mScaleMaxDenom = -1;
141 #endif // QGSLEGENDSYMBOLITEMV2_H QList< QgsLegendSymbolItem > QgsLegendSymbolList
QgsSymbol * symbol() const
Returns associated symbol. May be null.
int scaleMinDenom() const
Min scale denominator of the scale range.
QString ruleKey() const
Returns unique identifier of the rule for identification of the item within renderer.
QgsSymbol * legacyRuleKey() const
Used for older code that identifies legend entries from symbol pointer within renderer.
QString label() const
Returns text label.
bool isCheckable() const
Returns whether the item is user-checkable - whether renderer supports enabling/disabling it...
The class stores information about one class/rule of a vector layer renderer in a unified way that ca...
int scaleMaxDenom() const
Max scale denominator of the scale range.
QString parentRuleKey() const
Key of the parent legend node.
Object that keeps configuration of appearance of marker symbol's data-defined size in legend...
int level() const
Indentation level that tells how deep the item is in a hierarchy of items. For flat lists level is 0...