QGIS API Documentation  2.99.0-Master (37c43df)
Public Member Functions | List of all members
QgsComposerRasterSymbolItem Class Reference

#include <qgscomposerlegenditem.h>

Inheritance diagram for QgsComposerRasterSymbolItem:
Inheritance graph
[legend]

Public Member Functions

 QgsComposerRasterSymbolItem ()
 
 QgsComposerRasterSymbolItem (const QString &text)
 
 QgsComposerRasterSymbolItem (const QIcon &icon, const QString &text)
 
virtual ~QgsComposerRasterSymbolItem ()
 
virtual QStandardItem * clone () const override
 
QColor color () const
 
ItemType itemType () const override
 
QString layerId () const
 
virtual void readXml (const QDomElement &itemElem, bool xServerAvailable=true) override
 Read item content from xml. More...
 
void setColor (const QColor &c)
 
void setLayerId (const QString &id)
 
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,
  StyleItem
}
 
- 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 105 of file qgscomposerlegenditem.h.

Constructor & Destructor Documentation

§ QgsComposerRasterSymbolItem() [1/3]

QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem ( )

Definition at line 149 of file qgscomposerlegenditem.cpp.

§ QgsComposerRasterSymbolItem() [2/3]

QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem ( const QString &  text)

Definition at line 153 of file qgscomposerlegenditem.cpp.

§ QgsComposerRasterSymbolItem() [3/3]

QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem ( const QIcon &  icon,
const QString &  text 
)

Definition at line 157 of file qgscomposerlegenditem.cpp.

§ ~QgsComposerRasterSymbolItem()

QgsComposerRasterSymbolItem::~QgsComposerRasterSymbolItem ( )
virtual

Definition at line 161 of file qgscomposerlegenditem.cpp.

Member Function Documentation

§ clone()

QStandardItem * QgsComposerRasterSymbolItem::clone ( ) const
overridevirtual

Implements QgsComposerLegendItem.

Definition at line 165 of file qgscomposerlegenditem.cpp.

§ color()

QColor QgsComposerRasterSymbolItem::color ( ) const
inline

Definition at line 123 of file qgscomposerlegenditem.h.

§ itemType()

ItemType QgsComposerRasterSymbolItem::itemType ( ) const
inlineoverridevirtual

Implements QgsComposerLegendItem.

Definition at line 120 of file qgscomposerlegenditem.h.

§ layerId()

QString QgsComposerRasterSymbolItem::layerId ( ) const
inline

Definition at line 119 of file qgscomposerlegenditem.h.

§ readXml()

void QgsComposerRasterSymbolItem::readXml ( const QDomElement &  itemElem,
bool  xServerAvailable = true 
)
overridevirtual

Read item content from xml.

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

Implements QgsComposerLegendItem.

Definition at line 183 of file qgscomposerlegenditem.cpp.

§ setColor()

void QgsComposerRasterSymbolItem::setColor ( const QColor &  c)
inline

Definition at line 122 of file qgscomposerlegenditem.h.

§ setLayerId()

void QgsComposerRasterSymbolItem::setLayerId ( const QString &  id)
inline

Definition at line 118 of file qgscomposerlegenditem.h.

§ writeXml()

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

Implements QgsComposerLegendItem.

Definition at line 173 of file qgscomposerlegenditem.cpp.


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