18 #ifndef QGSCOMPOSERLEGENDITEM_H 19 #define QGSCOMPOSERLEGENDITEM_H 22 #include <QStandardItem> 39 GroupItem = QStandardItem::UserType,
50 virtual void readXML(
const QDomElement& itemElem,
bool xServerAvailable =
true ) = 0;
52 virtual ItemType itemType()
const = 0;
89 virtual void readXML(
const QDomElement& itemElem,
bool xServerAvailable =
true )
override;
115 virtual void readXML(
const QDomElement& itemElem,
bool xServerAvailable =
true )
override;
141 virtual void readXML(
const QDomElement& itemElem,
bool xServerAvailable =
true )
override;
151 void setDefaultStyle(
double scaleDenominator = -1,
const QString& rule =
"" );
156 bool mShowFeatureCount;
171 virtual void readXML(
const QDomElement& itemElem,
bool xServerAvailable =
true )
override;
187 #endif // QGSCOMPOSERLEGENDITEM_H ItemType itemType() const override
ItemType itemType() const override
virtual void readXML(const QDomElement &itemElem, bool xServerAvailable=true)=0
Read item content from xml.
bool showFeatureCount() const
QgsComposerLegendStyle::Style style() const
void setLayerID(const QString &id)
virtual QStandardItem * clone() const override=0
virtual QStandardItem * clone() const
void setLayerID(const QString &id)
void setStyle(QgsComposerLegendStyle::Style style)
ItemType itemType() const override
virtual QString userText() const
virtual void writeXML(QDomElement &elem, QDomDocument &doc) const =0
QgsComposerLegendStyle::Style mStyle
Abstract base class for the legend item types.
ItemType itemType() const override
void setShowFeatureCount(bool show)
void setColor(const QColor &c)
virtual void setUserText(const QString &text)