6 #include "../../../../maptools/AbstractLayer.h" 13 te::common::Decorator<QStyledItemDelegate>(decorated)
28 if(l->getSchema()->hasRaster())
30 QStyleOptionViewItem opt = option;
32 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) 34 opt.icon = QIcon(QIcon::fromTheme(
"file-raster"));
38 opt.decorationSize = QSize(20, 20);
40 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) 42 opt.features |= QStyleOptionViewItem::HasDecoration;
QStyledItemDelegate * m_decorated
The object decorated.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
void paint(te::qt::widgets::Canvas *c, bool generatePNG, std::string fileName)