te::qt::widgets::RasterLayerDelegate Class Reference

#include <RasterLayerDelegate.h>

Inheritance diagram for te::qt::widgets::RasterLayerDelegate:
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
 
 RasterLayerDelegate (QStyledItemDelegate *decorated, QObject *parent=0)
 
QStyledItemDelegate * removeDecorator (QStyledItemDelegate *decorated)
 Removes The decorator of the decorated. More...
 
 ~RasterLayerDelegate ()
 

Protected Attributes

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

Detailed Description

Definition at line 42 of file RasterLayerDelegate.h.

Constructor & Destructor Documentation

te::qt::widgets::RasterLayerDelegate::RasterLayerDelegate ( QStyledItemDelegate *  decorated,
QObject parent = 0 
)

Definition at line 12 of file RasterLayerDelegate.cpp.

References ~RasterLayerDelegate().

te::qt::widgets::RasterLayerDelegate::~RasterLayerDelegate ( )
default

Referenced by RasterLayerDelegate().

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::widgets::RasterLayerDelegate::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.


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