23 #include "../../widgets/layer/explorer/LayerItem.h" 26 te::common::Decorator<QStyledItemDelegate>(decorated, false)
30 m_obsIcon = QIcon::fromTheme(
"observation-layer");
31 m_tmsIcon = QIcon::fromTheme(
"timeseries-layer");
32 m_trjIcon = QIcon::fromTheme(
"trajectory-layer");
51 QStyleOptionViewItem opt = option;
52 opt.decorationSize = QSize(16, 16);
53 opt.features |= QStyleOptionViewItem::HasDecoration;
This is the base class for layers.
virtual const std::string & getType() const =0
It returns the layer type.
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
QStyledItemDelegate * m_decorated
The object decorated.
QIcon getIcon(const te::map::AbstractLayer *l) const
STItemDelegate(QStyledItemDelegate *decorated, QObject *parent=0)
void paint(te::qt::widgets::Canvas *c, bool generatePNG, std::string fileName)