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
QgsComposerLayerItem Class Reference

#include <qgscomposerlegenditem.h>

Inheritance diagram for QgsComposerLayerItem:
Inheritance graph
[legend]

Public Member Functions

 QgsComposerLayerItem ()
 QgsComposerLayerItem (const QString &text)
virtual ~QgsComposerLayerItem ()
virtual QStandardItem * clone () const override
ItemType itemType () const override
QString layerID () const
virtual void readXML (const QDomElement &itemElem, bool xServerAvailable=true) override
 Read item content from xml.
void setDefaultStyle (double scaleDenominator=-1, QString rule="")
void setLayerID (const QString &id)
void setShowFeatureCount (bool show)
bool showFeatureCount () const
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 122 of file qgscomposerlegenditem.h.

Constructor & Destructor Documentation

QgsComposerLayerItem::QgsComposerLayerItem ( )

Definition at line 205 of file qgscomposerlegenditem.cpp.

QgsComposerLayerItem::QgsComposerLayerItem ( const QString &  text)

Definition at line 210 of file qgscomposerlegenditem.cpp.

QgsComposerLayerItem::~QgsComposerLayerItem ( )
virtual

Definition at line 215 of file qgscomposerlegenditem.cpp.

Member Function Documentation

QStandardItem * QgsComposerLayerItem::clone ( ) const
overridevirtual

Implements QgsComposerLegendItem.

Definition at line 219 of file qgscomposerlegenditem.cpp.

ItemType QgsComposerLayerItem::itemType ( ) const
inlineoverridevirtual

Implements QgsComposerLegendItem.

Definition at line 133 of file qgscomposerlegenditem.h.

QString QgsComposerLayerItem::layerID ( ) const
inline

Definition at line 136 of file qgscomposerlegenditem.h.

void QgsComposerLayerItem::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 239 of file qgscomposerlegenditem.cpp.

void QgsComposerLayerItem::setDefaultStyle ( double  scaleDenominator = -1,
QString  rule = "" 
)

Definition at line 289 of file qgscomposerlegenditem.cpp.

void QgsComposerLayerItem::setLayerID ( const QString &  id)
inline

Definition at line 135 of file qgscomposerlegenditem.h.

void QgsComposerLayerItem::setShowFeatureCount ( bool  show)
inline

Definition at line 138 of file qgscomposerlegenditem.h.

bool QgsComposerLayerItem::showFeatureCount ( ) const
inline

Definition at line 139 of file qgscomposerlegenditem.h.

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

Implements QgsComposerLegendItem.

Definition at line 227 of file qgscomposerlegenditem.cpp.


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