A class for rendering icons for layer and folder itens.
More...
#include <LayerViewDelegate.h>
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.
◆ LayerViewDelegate()
te::qt::widgets::LayerViewDelegate::LayerViewDelegate |
( |
QStyledItemDelegate * |
decorated, |
|
|
QObject * |
parent = 0 |
|
) |
| |
Constructor.
- Parameters
-
decorated | The delegate to be decorated. |
parent | Used by Qt5. |
◆ ~LayerViewDelegate()
te::qt::widgets::LayerViewDelegate::~LayerViewDelegate |
( |
| ) |
|
◆ findDecorator()
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.
Definition at line 86 of file Decorator.h.
◆ getDecorated()
Returns the pointer of decorated object.
Definition at line 78 of file Decorator.h.
◆ getIcon()
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.
◆ paint()
void te::qt::widgets::LayerViewDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
◆ removeDecorator()
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.
Definition at line 94 of file Decorator.h.
◆ m_chart
QIcon te::qt::widgets::LayerViewDelegate::m_chart |
|
protected |
◆ m_colorMap
QIcon te::qt::widgets::LayerViewDelegate::m_colorMap |
|
protected |
◆ m_decorated
◆ m_delDecorated
If true, also delete decorated pointer.
Definition at line 99 of file Decorator.h.
◆ m_folder
QIcon te::qt::widgets::LayerViewDelegate::m_folder |
|
protected |
◆ m_invalidLayer
QIcon te::qt::widgets::LayerViewDelegate::m_invalidLayer |
|
protected |
◆ m_layer
QIcon te::qt::widgets::LayerViewDelegate::m_layer |
|
protected |
◆ m_queryLayer
QIcon te::qt::widgets::LayerViewDelegate::m_queryLayer |
|
protected |
◆ m_style
QIcon te::qt::widgets::LayerViewDelegate::m_style |
|
protected |
◆ m_tabularLayer
QIcon te::qt::widgets::LayerViewDelegate::m_tabularLayer |
|
protected |
◆ m_warningLayer
QIcon te::qt::widgets::LayerViewDelegate::m_warningLayer |
|
protected |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/qt/widgets/layer/explorer/LayerViewDelegate.h