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

#include <qgscomposerlegenditem.h>

Inheritance diagram for QgsComposerSymbolV2Item:
Inheritance graph
[legend]

Public Member Functions

 QgsComposerSymbolV2Item ()
 QgsComposerSymbolV2Item (const QString &text)
 QgsComposerSymbolV2Item (const QIcon &icon, const QString &text)
virtual ~QgsComposerSymbolV2Item ()
virtual QStandardItem * clone () const override
ItemType itemType () const override
virtual void readXML (const QDomElement &itemElem, bool xServerAvailable=true) override
 Read item content from xml.
void setSymbolV2 (QgsSymbolV2 *s)
 Set symbol (takes ownership)
QgsSymbolV2symbolV2 ()
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 74 of file qgscomposerlegenditem.h.

Constructor & Destructor Documentation

QgsComposerSymbolV2Item::QgsComposerSymbolV2Item ( )

Definition at line 69 of file qgscomposerlegenditem.cpp.

QgsComposerSymbolV2Item::QgsComposerSymbolV2Item ( const QString &  text)

Definition at line 73 of file qgscomposerlegenditem.cpp.

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

Definition at line 77 of file qgscomposerlegenditem.cpp.

QgsComposerSymbolV2Item::~QgsComposerSymbolV2Item ( )
virtual

Definition at line 81 of file qgscomposerlegenditem.cpp.

Member Function Documentation

QStandardItem * QgsComposerSymbolV2Item::clone ( ) const
overridevirtual

Implements QgsComposerLegendItem.

Definition at line 86 of file qgscomposerlegenditem.cpp.

ItemType QgsComposerSymbolV2Item::itemType ( ) const
inlineoverridevirtual

Implements QgsComposerLegendItem.

Definition at line 91 of file qgscomposerlegenditem.h.

void QgsComposerSymbolV2Item::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 112 of file qgscomposerlegenditem.cpp.

void QgsComposerSymbolV2Item::setSymbolV2 ( QgsSymbolV2 s)

Set symbol (takes ownership)

Definition at line 142 of file qgscomposerlegenditem.cpp.

QgsSymbolV2* QgsComposerSymbolV2Item::symbolV2 ( )
inline

Definition at line 89 of file qgscomposerlegenditem.h.

void QgsComposerSymbolV2Item::writeXML ( QDomElement &  elem,
QDomDocument &  doc 
) const
overridevirtual

Implements QgsComposerLegendItem.

Definition at line 97 of file qgscomposerlegenditem.cpp.


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