#include <qgscomposerlegenditem.h>
Public Member Functions | |
QgsComposerRasterSymbolItem () | |
QgsComposerRasterSymbolItem (const QString &text) | |
QgsComposerRasterSymbolItem (const QIcon &icon, const QString &text) | |
virtual | ~QgsComposerRasterSymbolItem () |
virtual QStandardItem * | clone () const |
virtual void | writeXML (QDomElement &elem, QDomDocument &doc) const |
virtual void | readXML (const QDomElement &itemElem) |
void | setLayerID (const QString &id) |
QString | layerID () const |
ItemType | itemType () const |
Private Attributes | |
QString | mLayerID |
Definition at line 108 of file qgscomposerlegenditem.h.
QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem | ( | ) |
QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem | ( | const QString & | text | ) |
Definition at line 234 of file qgscomposerlegenditem.cpp.
QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem | ( | const QIcon & | icon, | |
const QString & | text | |||
) |
Definition at line 238 of file qgscomposerlegenditem.cpp.
QgsComposerRasterSymbolItem::~QgsComposerRasterSymbolItem | ( | ) | [virtual] |
Definition at line 242 of file qgscomposerlegenditem.cpp.
QStandardItem * QgsComposerRasterSymbolItem::clone | ( | ) | const [virtual] |
Implements QgsComposerLegendItem.
Definition at line 246 of file qgscomposerlegenditem.cpp.
References mLayerID, QgsComposerRasterSymbolItem(), and setLayerID().
void QgsComposerRasterSymbolItem::writeXML | ( | QDomElement & | elem, | |
QDomDocument & | doc | |||
) | const [virtual] |
Implements QgsComposerLegendItem.
Definition at line 254 of file qgscomposerlegenditem.cpp.
References mLayerID.
void QgsComposerRasterSymbolItem::readXML | ( | const QDomElement & | itemElem | ) | [virtual] |
Implements QgsComposerLegendItem.
Definition at line 262 of file qgscomposerlegenditem.cpp.
References QgsMapLayerRegistry::instance(), QgsMapLayerRegistry::mapLayer(), mLayerID, and setLayerID().
void QgsComposerRasterSymbolItem::setLayerID | ( | const QString & | id | ) | [inline] |
Definition at line 121 of file qgscomposerlegenditem.h.
Referenced by QgsLegendModel::addRasterLayerItem(), clone(), and readXML().
QString QgsComposerRasterSymbolItem::layerID | ( | ) | const [inline] |
Definition at line 122 of file qgscomposerlegenditem.h.
ItemType QgsComposerRasterSymbolItem::itemType | ( | ) | const [inline, virtual] |
QString QgsComposerRasterSymbolItem::mLayerID [private] |
Definition at line 126 of file qgscomposerlegenditem.h.
Referenced by clone(), readXML(), and writeXML().