Quantum GIS API Documentation  1.8
Public Member Functions | Private Attributes
QgsComposerSymbolV2Item Class Reference

#include <qgscomposerlegenditem.h>

Inheritance diagram for QgsComposerSymbolV2Item:
Inheritance graph
Collaboration diagram for QgsComposerSymbolV2Item:
Collaboration graph

List of all members.

Public Member Functions

 QgsComposerSymbolV2Item ()
 QgsComposerSymbolV2Item (const QString &text)
 QgsComposerSymbolV2Item (const QIcon &icon, const QString &text)
virtual ~QgsComposerSymbolV2Item ()
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 setSymbolV2 (QgsSymbolV2 *s)
 Set symbol (takes ownership)
QgsSymbolV2symbolV2 ()
ItemType itemType () const

Private Attributes


Detailed Description

Definition at line 88 of file qgscomposerlegenditem.h.

Constructor & Destructor Documentation

Definition at line 158 of file qgscomposerlegenditem.cpp.

Referenced by clone().

Definition at line 162 of file qgscomposerlegenditem.cpp.

QgsComposerSymbolV2Item::QgsComposerSymbolV2Item ( const QIcon &  icon,
const QString &  text 

Definition at line 166 of file qgscomposerlegenditem.cpp.

Definition at line 170 of file qgscomposerlegenditem.cpp.

References mSymbolV2.

Member Function Documentation

QStandardItem * QgsComposerSymbolV2Item::clone ( ) const [virtual]
ItemType QgsComposerSymbolV2Item::itemType ( ) const [inline, virtual]

Implements QgsComposerLegendItem.

Definition at line 105 of file qgscomposerlegenditem.h.

References QgsComposerLegendItem::SymbologyV2Item.

void QgsComposerSymbolV2Item::readXML ( const QDomElement &  itemElem,
bool  xServerAvailable = true 
) [virtual]

Read item content from xml.

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

Implements QgsComposerLegendItem.

Definition at line 200 of file qgscomposerlegenditem.cpp.

References QgsSymbolLayerV2Utils::loadSymbols(), setSymbolV2(), and QgsSymbolLayerV2Utils::symbolPreviewIcon().

Set symbol (takes ownership)

Definition at line 229 of file qgscomposerlegenditem.cpp.

References mSymbolV2.

Referenced by QgsLegendModel::addVectorLayerItemsV2(), clone(), and readXML().

Definition at line 103 of file qgscomposerlegenditem.h.

Referenced by QgsComposerLegend::drawLayerChildItems().

void QgsComposerSymbolV2Item::writeXML ( QDomElement &  elem,
QDomDocument &  doc 
) const [virtual]

Implements QgsComposerLegendItem.

Definition at line 186 of file qgscomposerlegenditem.cpp.

References mSymbolV2, and QgsSymbolLayerV2Utils::saveSymbols().

Member Data Documentation

Definition at line 108 of file qgscomposerlegenditem.h.

Referenced by clone(), setSymbolV2(), writeXML(), and ~QgsComposerSymbolV2Item().

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines