te::qt::plugins::st::STItemDelegate Class Reference

#include <STItemDelegate.h>

Inheritance diagram for te::qt::plugins::st::STItemDelegate:
te::common::Decorator< QStyledItemDelegate >

Public Member Functions

QStyledItemDelegate * findDecorator (QStyledItemDelegate *decorated)
 Returns the Decorator that decorates this item. More...
 
QStyledItemDelegate * getDecorated ()
 Returns the pointer of decorated object. More...
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
QStyledItemDelegate * removeDecorator (QStyledItemDelegate *decorated)
 Removes The decorator of the decorated. More...
 
 STItemDelegate (QStyledItemDelegate *decorated, QObject *parent=0)
 
 ~STItemDelegate ()
 

Protected Member Functions

QIcon getIcon (const te::map::AbstractLayer *l) const
 

Protected Attributes

QStyledItemDelegate * m_decorated
 The object decorated. More...
 
bool m_delDecorated
 If true, also delete decorated pointer. More...
 
QIcon m_obsIcon
 
QIcon m_tmsIcon
 
QIcon m_trjIcon
 

Detailed Description

Definition at line 42 of file STItemDelegate.h.

Constructor & Destructor Documentation

te::qt::plugins::st::STItemDelegate::STItemDelegate ( QStyledItemDelegate *  decorated,
QObject parent = 0 
)

Definition at line 25 of file STItemDelegate.cpp.

References m_obsIcon, m_tmsIcon, m_trjIcon, and ~STItemDelegate().

te::qt::plugins::st::STItemDelegate::~STItemDelegate ( )
default

Referenced by STItemDelegate().

Member Function Documentation

QStyledItemDelegate * te::common::Decorator< QStyledItemDelegate >::findDecorator ( QStyledItemDelegate *  decorated)
inherited

Returns the Decorator that decorates this item.

Parameters
decoratedThe decorated item that we are looking for.
Returns
The Decorator we are looking for or this if there's no decorators or 0 if not found.
QStyledItemDelegate * te::common::Decorator< QStyledItemDelegate >::getDecorated ( )
inherited

Returns the pointer of decorated object.

QIcon te::qt::plugins::st::STItemDelegate::getIcon ( const te::map::AbstractLayer l) const
protected

Definition at line 70 of file STItemDelegate.cpp.

References te::map::AbstractLayer::getType(), m_obsIcon, m_tmsIcon, and m_trjIcon.

Referenced by paint().

void te::qt::plugins::st::STItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
QStyledItemDelegate * te::common::Decorator< QStyledItemDelegate >::removeDecorator ( QStyledItemDelegate *  decorated)
inherited

Removes The decorator of the decorated.

Parameters
decoratedThe item that we are searching for the decorator.
Returns
The new item to be used as new Delegate or NULL.

Member Data Documentation

bool te::common::Decorator< QStyledItemDelegate >::m_delDecorated
protectedinherited

If true, also delete decorated pointer.

Definition at line 99 of file Decorator.h.

QIcon te::qt::plugins::st::STItemDelegate::m_obsIcon
protected

Definition at line 56 of file STItemDelegate.h.

Referenced by getIcon(), and STItemDelegate().

QIcon te::qt::plugins::st::STItemDelegate::m_tmsIcon
protected

Definition at line 57 of file STItemDelegate.h.

Referenced by getIcon(), and STItemDelegate().

QIcon te::qt::plugins::st::STItemDelegate::m_trjIcon
protected

Definition at line 58 of file STItemDelegate.h.

Referenced by getIcon(), and STItemDelegate().


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