QGIS API Documentation  master-59fd5e0
QgsComposerLayerItem Class Reference

#include <qgscomposerlegenditem.h>

+ Inheritance diagram for QgsComposerLayerItem:
+ Collaboration diagram for QgsComposerLayerItem:

List of all members.

Public Member Functions

 QgsComposerLayerItem ()
 QgsComposerLayerItem (const QString &text)
virtual ~QgsComposerLayerItem ()
virtual QStandardItem * clone () const
ItemType itemType () const
QString layerID () const
virtual void readXML (const QDomElement &itemElem, bool xServerAvailable=true)
 Read item content from xml.
void setDefaultStyle ()
void setLayerID (const QString &id)
void setShowFeatureCount (bool show)
bool showFeatureCount () const
virtual void writeXML (QDomElement &elem, QDomDocument &doc) const

Private Attributes

QString mLayerID
bool mShowFeatureCount

Detailed Description

Definition at line 122 of file qgscomposerlegenditem.h.


Constructor & Destructor Documentation

Definition at line 205 of file qgscomposerlegenditem.cpp.

Referenced by clone().

QgsComposerLayerItem::QgsComposerLayerItem ( const QString &  text)

Definition at line 210 of file qgscomposerlegenditem.cpp.


Member Function Documentation

QStandardItem * QgsComposerLayerItem::clone ( ) const [virtual]

Implements QgsComposerLegendItem.

Definition at line 219 of file qgscomposerlegenditem.cpp.

References mLayerID, QgsComposerLayerItem(), and setLayerID().

ItemType QgsComposerLayerItem::itemType ( ) const [inline, virtual]

Implements QgsComposerLegendItem.

Definition at line 133 of file qgscomposerlegenditem.h.

References QgsComposerLegendItem::LayerItem.

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

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.

References QgsComposerLegendItem::readXML(), setLayerID(), setShowFeatureCount(), QgsComposerLegendItem::setStyle(), QgsComposerLegendItem::setUserText(), and QgsComposerLegendStyle::styleFromName().

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

Definition at line 135 of file qgscomposerlegenditem.h.

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

void QgsComposerLayerItem::setShowFeatureCount ( bool  show) [inline]

Definition at line 138 of file qgscomposerlegenditem.h.

Referenced by readXML().


Member Data Documentation

QString QgsComposerLayerItem::mLayerID [private]

Definition at line 144 of file qgscomposerlegenditem.h.

Referenced by clone(), and writeXML().

Definition at line 146 of file qgscomposerlegenditem.h.


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