te::qt::plugins::wms::WMSItemDelegate Class Reference

#include <WMSItemDelegate.h>

Inheritance diagram for te::qt::plugins::wms::WMSItemDelegate:
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...
 
 WMSItemDelegate (QStyledItemDelegate *decorated, QObject *parent=0)
 
 ~WMSItemDelegate ()
 

Protected Attributes

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

Detailed Description

Constructor & Destructor Documentation

te::qt::plugins::wms::WMSItemDelegate::WMSItemDelegate ( QStyledItemDelegate *  decorated,
QObject parent = 0 
)

Definition at line 25 of file attic/src/qt/plugins/datasource/wms/WMSItemDelegate.cpp.

References m_icon.

te::qt::plugins::wms::WMSItemDelegate::~WMSItemDelegate ( )

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.

void te::qt::plugins::wms::WMSItemDelegate::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::wms::WMSItemDelegate::m_icon
protected

Definition at line 49 of file attic/src/qt/plugins/datasource/wms/WMSItemDelegate.h.

Referenced by paint(), and WMSItemDelegate().


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