QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 QStandardItemclone () const override
 
ItemType itemType () const override
 
virtual void readXML (const QDomElement &itemElem, bool xServerAvailable=true) override
 Read item content from xml. More...
 
void setSymbolV2 (QgsSymbolV2 *s)
 Set symbol (takes ownership) More...
 
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
 
- Public Member Functions inherited from QStandardItem
 QStandardItem ()
 
 QStandardItem (const QString &text)
 
 QStandardItem (int rows, int columns)
 
 QStandardItem (const QIcon &icon, const QString &text)
 
virtual ~QStandardItem ()
 
QString accessibleDescription () const
 
QString accessibleText () const
 
void appendColumn (const QList< QStandardItem * > &items)
 
void appendRow (const QList< QStandardItem * > &items)
 
void appendRow (QStandardItem *item)
 
void appendRows (const QList< QStandardItem * > &items)
 
QBrush background () const
 
Qt::CheckState checkState () const
 
QStandardItemchild (int row, int column) const
 
int column () const
 
int columnCount () const
 
virtual QVariant data (int role) const
 
Qt::ItemFlags flags () const
 
QFont font () const
 
QBrush foreground () const
 
bool hasChildren () const
 
QIcon icon () const
 
QModelIndex index () const
 
void insertColumn (int column, const QList< QStandardItem * > &items)
 
void insertColumns (int column, int count)
 
void insertRow (int row, QStandardItem *item)
 
void insertRow (int row, const QList< QStandardItem * > &items)
 
void insertRows (int row, const QList< QStandardItem * > &items)
 
void insertRows (int row, int count)
 
bool isCheckable () const
 
bool isDragEnabled () const
 
bool isDropEnabled () const
 
bool isEditable () const
 
bool isEnabled () const
 
bool isSelectable () const
 
bool isTristate () const
 
QStandardItemModelmodel () const
 
virtual bool operator< (const QStandardItem &other) const
 
QStandardItemparent () const
 
virtual void read (QDataStream &in)
 
void removeColumn (int column)
 
void removeColumns (int column, int count)
 
void removeRow (int row)
 
void removeRows (int row, int count)
 
int row () const
 
int rowCount () const
 
void setAccessibleDescription (const QString &accessibleDescription)
 
void setAccessibleText (const QString &accessibleText)
 
void setBackground (const QBrush &brush)
 
void setCheckable (bool checkable)
 
void setCheckState (Qt::CheckState state)
 
void setChild (int row, int column, QStandardItem *item)
 
void setChild (int row, QStandardItem *item)
 
void setColumnCount (int columns)
 
virtual void setData (const QVariant &value, int role)
 
void setDragEnabled (bool dragEnabled)
 
void setDropEnabled (bool dropEnabled)
 
void setEditable (bool editable)
 
void setEnabled (bool enabled)
 
void setFlags (QFlags< Qt::ItemFlag > flags)
 
void setFont (const QFont &font)
 
void setForeground (const QBrush &brush)
 
void setIcon (const QIcon &icon)
 
void setRowCount (int rows)
 
void setSelectable (bool selectable)
 
void setSizeHint (const QSize &size)
 
void setStatusTip (const QString &statusTip)
 
void setText (const QString &text)
 
void setTextAlignment (QFlags< Qt::AlignmentFlag > alignment)
 
void setToolTip (const QString &toolTip)
 
void setTristate (bool tristate)
 
void setWhatsThis (const QString &whatsThis)
 
QSize sizeHint () const
 
void sortChildren (int column, Qt::SortOrder order)
 
QString statusTip () const
 
QStandardItemtakeChild (int row, int column)
 
QList< QStandardItem * > takeColumn (int column)
 
QList< QStandardItem * > takeRow (int row)
 
QString text () const
 
Qt::Alignment textAlignment () const
 
QString toolTip () const
 
virtual int type () const
 
QString whatsThis () const
 
virtual void write (QDataStream &out) 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 Member Functions inherited from QStandardItem
 QStandardItem (const QStandardItem &other)
 
void emitDataChanged ()
 
QStandardItemoperator= (const QStandardItem &other)
 
- Protected Attributes inherited from QgsComposerLegendItem
QgsComposerLegendStyle::Style mStyle
 
QString mUserText
 

Detailed Description

Definition at line 78 of file qgscomposerlegenditem.h.

Constructor & Destructor Documentation

◆ QgsComposerSymbolV2Item() [1/3]

QgsComposerSymbolV2Item::QgsComposerSymbolV2Item ( )

Definition at line 68 of file qgscomposerlegenditem.cpp.

◆ QgsComposerSymbolV2Item() [2/3]

QgsComposerSymbolV2Item::QgsComposerSymbolV2Item ( const QString text)

Definition at line 72 of file qgscomposerlegenditem.cpp.

◆ QgsComposerSymbolV2Item() [3/3]

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

Definition at line 76 of file qgscomposerlegenditem.cpp.

◆ ~QgsComposerSymbolV2Item()

QgsComposerSymbolV2Item::~QgsComposerSymbolV2Item ( )
virtual

Definition at line 80 of file qgscomposerlegenditem.cpp.

Member Function Documentation

◆ clone()

QStandardItem * QgsComposerSymbolV2Item::clone ( ) const
overridevirtual

Implements QgsComposerLegendItem.

Definition at line 85 of file qgscomposerlegenditem.cpp.

◆ itemType()

ItemType QgsComposerSymbolV2Item::itemType ( ) const
inlineoverridevirtual

Implements QgsComposerLegendItem.

Definition at line 95 of file qgscomposerlegenditem.h.

◆ readXML()

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 111 of file qgscomposerlegenditem.cpp.

◆ setSymbolV2()

void QgsComposerSymbolV2Item::setSymbolV2 ( QgsSymbolV2 s)

Set symbol (takes ownership)

Definition at line 141 of file qgscomposerlegenditem.cpp.

◆ symbolV2()

QgsSymbolV2* QgsComposerSymbolV2Item::symbolV2 ( )
inline

Definition at line 93 of file qgscomposerlegenditem.h.

◆ writeXML()

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

Implements QgsComposerLegendItem.

Definition at line 96 of file qgscomposerlegenditem.cpp.


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