QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsComposerRasterSymbolItem Class Reference

#include <qgscomposerlegenditem.h>

Inheritance diagram for QgsComposerRasterSymbolItem:
Inheritance graph

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, bool xServerAvailable=true)
 Read item content from xml.
void setLayerID (const QString &id)
QString layerID () const
ItemType itemType () const
void setColor (const QColor &c)
QColor color () const
- 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 ()
QgsComposerLegendStyle::Style style () const
void setStyle (QgsComposerLegendStyle::Style style)
virtual QString userText () const
virtual void setUserText (const QString &text)

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

Constructor & Destructor Documentation

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

Member Function Documentation

QStandardItem * QgsComposerRasterSymbolItem::clone ( ) const

Implements QgsComposerLegendItem.

QColor QgsComposerRasterSymbolItem::color ( void  ) const
ItemType QgsComposerRasterSymbolItem::itemType ( ) const

Implements QgsComposerLegendItem.

QString QgsComposerRasterSymbolItem::layerID ( ) const
void QgsComposerRasterSymbolItem::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.

void QgsComposerRasterSymbolItem::setColor ( const QColor &  c)
void QgsComposerRasterSymbolItem::setLayerID ( const QString &  id)
void QgsComposerRasterSymbolItem::writeXML ( QDomElement &  elem,
QDomDocument &  doc 
) const

Implements QgsComposerLegendItem.

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