A class for rendering icons for layer and folder itens.
More...
#include <LayerViewDelegate.h>
|
QStyledItemDelegate * | findDecorator (QStyledItemDelegate *decorated) |
| Returns the Decorator that decorates this item. More...
|
|
QStyledItemDelegate * | getDecorated () |
| Returns the pointer of decorated object. More...
|
|
QStyledItemDelegate * | removeDecorator (QStyledItemDelegate *decorated) |
| Removes The decorator of the decorated. More...
|
|
|
Methods related to creation and destruction of the object.
|
| LayerViewDelegate (QStyledItemDelegate *decorated, QObject *parent=0) |
| Constructor. More...
|
|
| ~LayerViewDelegate () |
| Destructor. More...
|
|
|
Methods reimplemented of the QStyledItemDelegate class.
|
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
|
QIcon | getIcon (const QModelIndex &index) const |
| Returns the icon for a given index. More...
|
|
A class for rendering icons for layer and folder itens.
This is the default delegate for LayerItemView. It's used for present icons for the known kind of items. For unknown items, or if you want to change the known ones, you can create your own delegate and install it on the LayerItemView. Note that we use a decorator instead the QStyledItemDelegate. This is useful for making the inheritance dynamic.
- See also
- te::common::Decorator
Definition at line 57 of file LayerViewDelegate.h.
te::qt::widgets::LayerViewDelegate::LayerViewDelegate |
( |
QStyledItemDelegate * |
decorated, |
|
|
QObject * |
parent = 0 |
|
) |
| |
Constructor.
- Parameters
-
decorated | The delegate to be decorated. |
parent | Used by Qt5. |
te::qt::widgets::LayerViewDelegate::~LayerViewDelegate |
( |
| ) |
|
QStyledItemDelegate * te::common::Decorator< QStyledItemDelegate >::findDecorator |
( |
QStyledItemDelegate * |
decorated | ) |
|
|
inherited |
Returns the Decorator that decorates this item.
- Parameters
-
decorated | The 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.
Returns the pointer of decorated object.
QIcon te::qt::widgets::LayerViewDelegate::getIcon |
( |
const QModelIndex & |
index | ) |
const |
|
protected |
Returns the icon for a given index.
- Parameters
-
index | Index of the object being rendered. |
- Returns
- The icon for the index.
void te::qt::widgets::LayerViewDelegate::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
-
decorated | The item that we are searching for the decorator. |
- Returns
- The new item to be used as new Delegate or NULL.
QIcon te::qt::widgets::LayerViewDelegate::m_chart |
|
protected |
QIcon te::qt::widgets::LayerViewDelegate::m_colorMap |
|
protected |
If true, also delete decorated pointer.
Definition at line 99 of file Decorator.h.
QIcon te::qt::widgets::LayerViewDelegate::m_folder |
|
protected |
QIcon te::qt::widgets::LayerViewDelegate::m_invalidLayer |
|
protected |
QIcon te::qt::widgets::LayerViewDelegate::m_layer |
|
protected |
QIcon te::qt::widgets::LayerViewDelegate::m_queryLayer |
|
protected |
QIcon te::qt::widgets::LayerViewDelegate::m_tabularLayer |
|
protected |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/qt/widgets/layer/explorer/LayerViewDelegate.h