QGIS API Documentation  2.99.0-Master (899ea38)
Public Member Functions | List of all members
QgsComposerGroupItem Class Reference

#include <qgscomposerlegenditem.h>

Inheritance diagram for QgsComposerGroupItem:
Inheritance graph

Public Member Functions

 QgsComposerGroupItem ()
 QgsComposerGroupItem (const QString &text)
virtual ~QgsComposerGroupItem ()
virtual QStandardItem * clone () const override
ItemType itemType () const override
virtual void readXml (const QDomElement &itemElem, bool xServerAvailable=true) override
 Read item content from xml. More...
virtual void writeXml (QDomElement &elem, QDomDocument &doc) const override
- Public Member Functions inherited from QgsComposerLegendItem
 QgsComposerLegendItem (QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined)
 QgsComposerLegendItem (const QString &text, QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined)
 QgsComposerLegendItem (const QIcon &icon, const QString &text, QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined)
virtual ~QgsComposerLegendItem ()
void setStyle (QgsComposerLegendStyle::Style style)
virtual void setUserText (const QString &text)
QgsComposerLegendStyle::Style style () const
virtual QString userText () const

Additional Inherited Members

- Public Types inherited from QgsComposerLegendItem
enum  ItemType {
  GroupItem = QStandardItem::UserType, LayerItem, SymbologyV2Item, RasterSymbolItem,
- Protected Member Functions inherited from QgsComposerLegendItem
void writeXmlChildren (QDomElement &elem, QDomDocument &doc) const
- Protected Attributes inherited from QgsComposerLegendItem
QgsComposerLegendStyle::Style mStyle
QString mUserText

Detailed Description

Definition at line 172 of file qgscomposerlegenditem.h.

Constructor & Destructor Documentation

§ QgsComposerGroupItem() [1/2]

QgsComposerGroupItem::QgsComposerGroupItem ( )

Definition at line 313 of file qgscomposerlegenditem.cpp.

§ QgsComposerGroupItem() [2/2]

QgsComposerGroupItem::QgsComposerGroupItem ( const QString &  text)

Definition at line 317 of file qgscomposerlegenditem.cpp.

§ ~QgsComposerGroupItem()

QgsComposerGroupItem::~QgsComposerGroupItem ( )

Definition at line 321 of file qgscomposerlegenditem.cpp.

Member Function Documentation

§ clone()

QStandardItem * QgsComposerGroupItem::clone ( ) const

Implements QgsComposerLegendItem.

Definition at line 325 of file qgscomposerlegenditem.cpp.

§ itemType()

ItemType QgsComposerGroupItem::itemType ( ) const

Implements QgsComposerLegendItem.

Definition at line 183 of file qgscomposerlegenditem.h.

§ readXml()

void QgsComposerGroupItem::readXml ( const QDomElement &  itemElem,
bool  xServerAvailable = true 

Read item content from xml.

itemElemitem to read from
xServerAvailableRead item icons if true (QIcon needs x-server)

Implements QgsComposerLegendItem.

Definition at line 343 of file qgscomposerlegenditem.cpp.

§ writeXml()

void QgsComposerGroupItem::writeXml ( QDomElement &  elem,
QDomDocument &  doc 
) const

Implements QgsComposerLegendItem.

Definition at line 332 of file qgscomposerlegenditem.cpp.

The documentation for this class was generated from the following files: